title: Volley - Cancelling request on fragment stop
body: <p>I have numerous fragments in the app that make Volley requests. </p>
  
  <p>Is it possible to automatically cancel all requests when a fragment exists?</p>
  
  <p>currently in all such fragments I have the following code (not verbatim as I'm away from my actual machine);</p>
  
  <pre><code>@Override
  public void onPause() {
    super.onPause();
    if (request != null)  {
      request.cancel();
    }
  }
  </code></pre>