@Test public void testOnReset() { final ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class); loader.onForceLoad(); verify(requestQueue).add(captor.capture()); final Request request = captor.getValue(); loader.onReset(); loader.onForceLoad(); assertFalse("The request was canceled", request.isCanceled()); }
@Override protected void onReset() { dispatchedRequest = null; handler.removeCallbacks(sender); super.onReset(); }
RequestLoader extends Loader<D> { @Override protected void onReset() { dispatchedRequest = null; handler.removeCallbacks(sender); super.onReset(); } }
RequestLoader extends Loader<D> { @Override protected void onReset() { dispatchedRequest = null; handler.removeCallbacks(sender); super.onReset(); } RequestLoader(@NonNull final Context context, @NonNull final Request<D> request,
			@NonNull final RequestQueue queue); }
RequestLoader extends Loader<D> { @Override protected void onReset() { dispatchedRequest = null; handler.removeCallbacks(sender); super.onReset(); } RequestLoader(@NonNull final Context context, @NonNull final Request<D> request,
			@NonNull final RequestQueue queue); void setUpdateThrottle(final long delayMS); @Override String toString(); }
RequestLoader extends Loader<D> { @Override protected void onReset() { dispatchedRequest = null; handler.removeCallbacks(sender); super.onReset(); } RequestLoader(@NonNull final Context context, @NonNull final Request<D> request,
			@NonNull final RequestQueue queue); void setUpdateThrottle(final long delayMS); @Override String toString();  }