title: Stop refreshing when page finishes loading
body: <p>I am asking for help, the problem is the refresh icon disappears before the page is fully loaded.</p>
  
  <p>Here is the code and thanks in advance:</p>
  
  <pre><code>final SwipeRefreshLayout swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipelayout);
          final WebView mWebView = (WebView) findViewById(R.id.activity_main_webview);
          swipeRefreshLayout.setColorSchemeResources(R.color.refresh,R.color.refresh1,R.color.refresh2);
          swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
              @Override
              public void onRefresh() {
                  mWebView.reload();
                  swipeRefreshLayout.setRefreshing(true);
                  (new Handler()).postDelayed(new Runnable() {
                      @Override
                      public void run() {
                          mWebView.stopLoading();
                          swipeRefreshLayout.setRefreshing(false);
  
  
  
  
  
                      }
                  },150000);
  </code></pre>
  
  <p>The 150000 is the amount of time it keeps appearing on the screen , I tried removing it but the the following override codes was messed up.I am a beginner so sorry if the solution is simple .</p>