@Test public void completeSetsBitmapOnRemoteViews() throws Exception { Callback callback = mockCallback(); Bitmap bitmap = makeBitmap(); RemoteViewsAction action = createAction(callback); action.complete(bitmap, NETWORK); verify(remoteViews).setImageViewBitmap(1, bitmap); verify(callback).onSuccess(); }
@Override void complete(Bitmap result, Picasso.LoadedFrom from) { remoteViews.setImageViewBitmap(viewId, result); update(); if (callback != null) { callback.onSuccess(); } }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override void complete(Bitmap result, Picasso.LoadedFrom from) { remoteViews.setImageViewBitmap(viewId, result); update(); if (callback != null) { callback.onSuccess(); } } }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override void complete(Bitmap result, Picasso.LoadedFrom from) { remoteViews.setImageViewBitmap(viewId, result); update(); if (callback != null) { callback.onSuccess(); } } 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 complete(Bitmap result, Picasso.LoadedFrom from) { remoteViews.setImageViewBitmap(viewId, result); update(); if (callback != null) { callback.onSuccess(); } } 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 complete(Bitmap result, Picasso.LoadedFrom from) { remoteViews.setImageViewBitmap(viewId, result); update(); if (callback != null) { callback.onSuccess(); } } 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);  }