title: Glide with Fragment Context
body: <p>This is related to <a href="https://stackoverflow.com/questions/31964737/glide-image-loading-with-application-context/32887693#32887693">Glide image loading with application context</a></p>
  
  <p>I have several Fragments hosted in an Activity, with a Fragment being replaced by another as the user navigates through the app.</p>
  
  <p>I'm passing a <code>RequestManager</code> into my MyFragment's RecyclerView adapter like so:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                              Bundle savedInstanceState) {
      ...
  
      MyAdapter adapter = new MyAdapter(Glide.with(this), listOfPhotos);
      recyclerView.setAdapter(adapter);
  
      ...
  }
  </code></pre>
  
  <p>My adapter:</p>
  
  <pre><code>public class MyAdapter
      extends RecyclerView.Adapter&lt;MyAdapter.ViewHolder&gt; {
  
      private RequestManager mGlide;
  
      ...
  
      // constructor
      public MyAdapter(RequestManager glide, List&lt;MyStuff&gt; listOfPhotos) {
          mGlide = glide;
  
          ...
      }
  
      ...
  
  }
  </code></pre>
  
  <p>When I debug my app, here's what I see in the object mGlide:</p>
  
  <p><a href="https://i.stack.imgur.com/bIhy6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bIhy6.png" alt="Debug information in mGlide object"></a></p>
  
  <p>The <code>context</code> seems to be my project's <code>ApplicationContext</code>. Now I'm not very familiar with Android contexts, but is this right? I assumed it will be something like com.MyFragment.....</p>
  
  <p>Also, is there a simple way to check if glide is following my fragments' lifecycles?</p>