title: updating recyclerView in onResume ();
body: <p>I have encountered some problems in "recreating" an adapter from the recyclerView in the onResume method.
  Basically, this is my scheme.</p>
  
  <pre><code>MainActivit  -ViewPager
     - fragment A (has a recyclerView)
     - fragment B (nop)
     - fragment C (nop)
     - fragment D (it has the same recyclerView as the framgnet A)
  </code></pre>
  
  <p><strong>onResume I always call for</strong></p>
  
  <pre><code>&gt; myCustomAdapter adapter = new myCustomAdapter (
  &gt; mListItems,getContext(),ParseUser.getCurrentUser().getObjectId(),
  &gt; "type");
  &gt;                recyclerView.setAdapter(adapter);
  </code></pre>
  
  <p>but this causes some problems, like when I go back to MainActivity from another activity. For example.</p>
  
  <pre><code>Activityt A
   - click on item in recylerView
   - start Activity B
  
  Activity B
  user does some actions, sees some news, and returns to Activity A.
  
  Activity A
  recreates the adapter and set recyclerView.setAdapter (new Adapter);
  this is slow, causes a delay of 2 seconds after onBackPressed is pressed in Activity B.
  </code></pre>
  
  <p>I also have a <strong>setMenuVisibility</strong> method that also does the same thing as onResume, because as informed in fragment D, I have the recyclerView in fragment A, so if a user makes some change in the recyclerView that is in fragment D, I need update the recyclerView of fragment  A when the user returns to it.</p>
  
  <p><strong>Why the same recyclerView in Fragment D is in Fragment A?</strong></p>
  
  <p>We can consider the following, in fragment A, I have a recyclerView that contains only the "user interests", and in fragment D, I have user information such as user name, photo, etc ... and also the "user interests".</p>
  
  <p><strong>Conclusion:</strong> The problem is when I return from Activity B to Activity A, and when I alternate between fragment A and fragment D in viewPager, this causes a delay for the re-creation of the adapter.</p>
  
  <p>What should I do in this situation?</p>
  
  <p>I apologize for this horrible English, I'm using google translator.</p>