@Test public void clearsCallbackOnCancel() throws Exception { Picasso picasso = mock(Picasso.class); ImageView target = mockImageViewTarget(); Callback callback = mockCallback(); ImageViewAction request = new ImageViewAction(picasso, target, null, 0, 0, 0, null, URI_KEY_1, null, callback, false); request.cancel(); assertThat(request.callback).isNull(); }
@Override void cancel() { super.cancel(); if (callback != null) { callback = null; } }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override void cancel() { super.cancel(); if (callback != null) { callback = null; } } }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override void cancel() { super.cancel(); if (callback != null) { callback = null; } } RemoteViewsAction(Picasso picasso, Request data, RemoteViews remoteViews, int viewId,
      int errorResId, int memoryPolicy, int networkPolicy, Object tag, String key,
      Callback callback); }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override void cancel() { super.cancel(); if (callback != null) { callback = null; } } RemoteViewsAction(Picasso picasso, Request data, RemoteViews remoteViews, int viewId,
      int errorResId, int memoryPolicy, int networkPolicy, Object tag, String key,
      Callback callback); @Override void error(Exception e); }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override void cancel() { super.cancel(); if (callback != null) { callback = null; } } RemoteViewsAction(Picasso picasso, Request data, RemoteViews remoteViews, int viewId,
      int errorResId, int memoryPolicy, int networkPolicy, Object tag, String key,
      Callback callback); @Override void error(Exception e);  }