title: How to restrict to call shouldOverrideUrlLoading when first time webview loading in fragment
body: <p>In my app, there are four tabs and in the second tab, I am trying to load webview...
  after disable <code>shouldOverrideUrlLoading</code> it perfectly load webview in fragment...
  but with <code>shouldOverrideUrlLoading</code> method, it redirects on new activity...
  But what I want is to load webview first on fragment and after clicking on any content link it should be redirected on new activity</p>
  
  <pre><code> private void setUpWebView() {
  
      WebSettings ws = webView.getSettings();
      ws.setJavaScriptEnabled(true);
      ws.setAllowFileAccess(true);
      webView.setScrollContainer(false);
      webView.setWebViewClient(new WebViewClient());
  }
  
  @Override
  public void onAttach(Context context) {
      super.onAttach(context);
      mContext = context;
  }
  
  private class WebViewClient extends android.webkit.WebViewClient{
  
      @Override
      public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request)
      {
          Intent intent = new Intent(getContext(),WebViewShowActivity.class);
          startActivity(intent);
          return true;
      }
  
  }
  </code></pre>