title: After adding tel: code reload icon not going away
body: <p>As I have added a code to make tel: links to go to phone app and dial. But after that my refresh code to hide refresh icon doesn't work. Can anyone help with this error as the Override is not working in the private class.</p>
  <pre><code>            //Webview stuff
              webview = findViewById(R.id.webView);
              webview.getSettings().setJavaScriptEnabled(true);
              webview.getSettings().setDomStorageEnabled(true);
              webview.setOverScrollMode(WebView.OVER_SCROLL_NEVER);
              webview.loadUrl(websiteURL);
              webview.setWebViewClient(new WebViewClientDemo());
  
              webview.setWebViewClient(new WebViewClient() {
                  public boolean shouldOverrideUrlLoading(WebView view, String url) {
                      if (url.startsWith(&quot;tel:&quot;)) {
                          Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(url));
                          startActivity(intent);
                          view.reload();
                          return true;
                      }
                      else if ((url.startsWith(&quot;mailto:&quot;)))  {
                          Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
                          startActivity(intent);
                          view.reload();
                          return true;
                      }
                      view.loadUrl(url);
                      return false;
                  }
              });
  
          //Swipe to refresh functionality
          mySwipeRefreshLayout = (SwipeRefreshLayout)this.findViewById(R.id.swipeContainer);
  
          mySwipeRefreshLayout.setOnRefreshListener(
                  new SwipeRefreshLayout.OnRefreshListener() {
                      @Override
                      public void onRefresh() {
                          webview.reload();
                      }
                  }
          );
  
      }
  
  
      private class WebViewClientDemo extends WebViewClient {
          @Override
          //Keep webview in app when clicking links
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              view.loadUrl(url);
              return true;
          }
          @Override
          public void onPageFinished(WebView view, String url) {
              super.onPageFinished(view, url);
              mySwipeRefreshLayout.setRefreshing(false);
          }
      }
  </code></pre>