title: Search view and tabLayout does not work properly for one tab
body: <p>I have a search view and in its bottom side, there are two tabs and below them there is a <code>Viewpager</code> and all works connected. I also have a text change listener for search view and in it, I am getting data from server and put it <code>RecyclerView</code> which are in fragments. </p>
  
  <pre><code>private void setSearch() {
      android.support.v7.widget.SearchView searchView = getParentFragment().getView().findViewById(R.id.search_box);
      searchView.setOnQueryTextListener(new android.support.v7.widget.SearchView.OnQueryTextListener() {
          @Override
          public boolean onQueryTextSubmit(String query) {
              return false;
          }
  
          @Override
          public boolean onQueryTextChange(String newText) {
              if (!newText.isEmpty()) {
                  ManagerAll.getInstance().fetchFiltereds(newText).enqueue(new Callback&lt;List&lt;a&gt;&gt;() {
                      @Override
                      public void onResponse(Call&lt;List&lt;a&gt;&gt; call, Response&lt;List&lt;a&gt;&gt; response) {
                          if (response.isSuccessful()) {
                              adapter = new Adapter(getContext(), response.body(), getFragmentManager());
                              list.setAdapter(adapter );
                              linearLayoutManager = new LinearLayoutManager(getContext());
                              linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
                              list.setLayoutManager(linearLayoutManager);
                          }
                      }
  
                      @Override
                      public void onFailure(Call&lt;List&lt;a&gt;&gt; call, Throwable t) {
  
                      }
                  });
                  return true;
              } else return false;
          }
      });
  }
  </code></pre>
  
  <p>I put this method (above) to both fragment that are laying inside viewPager. Almost everything works fine. All data according to text flows to recycler view but this data only comes to second tab. In first tab's fragment, there is no data. SearchView works for both fragment but only second fragment gets filled by data. First one is just empty even though I change text in search view. </p>