title: Multiple tabs with Webview
body: <p>I'm creating an application with 3 tabs containing webview. The WebViews are loading different urls such as Amazon, Flipkart and Myntra. I want to search in the respective sites. For that I'm using an EditText to get the keyword. The text from EditText(keyword) is passed to the fragments and url should be changed accordingly(such as <a href="https://www.amazon.com/s/?field-keywords=keyword" rel="nofollow noreferrer">https://www.amazon.com/s/?field-keywords=keyword</a>). The problem arises when the url is loading. Url is not changing even after concatenating the url with the keyword. The fragments are loading the same url everytime. 
   Here is the fragment code. </p>
  
  <p>onButtonClick method</p>
  
  <pre><code>    //calling the Adapter again
      String value = et.getText().toString();
      webViewAdapter = new WebViewAdapter(getSupportFragmentManager(),this,value);
      vp.setAdapter(webViewAdapter);
  </code></pre>
  
  <p>Adapter code</p>
  
  <pre><code>@Override
  public Fragment getItem(int i) {
      Bundle args = new Bundle();
      args.putString("search_term",key);
      switch (i)
      {
          case 0:
              AmazonFragment amazonFragment = new AmazonFragment();
              amazonFragment.setArguments(args);
              return amazonFragment;
          case 1:
              //similar to case 1
          case 2:
              //similar to case 1
      }
      return null;
  }
  </code></pre>
  
  <p>Fragment code</p>
  
  <pre><code>    String url = "https://www.amazon.com/s/?field-keywords=";
      Bundle args = getArguments();
      keyword = args.getString("search_term");
      if(keyword == null)
          keyword = "";
      View v = inflater.inflate(R.layout.webview_fragment,container,false);
      webView = v.findViewById(R.id.webview);
      url =  url.concat(keyword);
      webView.setWebViewClient(new WebViewClient(){
  
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              view.loadUrl(url);
              return true;
          }
  
          @Override
          public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
              handler.proceed(); // Ignore SSL certificate errors
          }
      });
  
      webView.getSettings().setLoadsImagesAutomatically(true);
      webView.getSettings().setJavaScriptEnabled(true);
      webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
      webView.loadUrl(url);
  </code></pre>
  
  <p>Please help.</p>