@Test public void errorWithResourceSetsResource() throws Exception { Callback callback = mockCallback(); RemoteViewsAction action = createAction(1, callback); Exception e = new RuntimeException(); action.error(e); verify(remoteViews).setImageViewResource(1, 1); verify(callback).onError(e); }
@Override public void error(Exception e) { if (errorResId != 0) { setImageResource(errorResId); } if (callback != null) { callback.onError(e); } }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override public void error(Exception e) { if (errorResId != 0) { setImageResource(errorResId); } if (callback != null) { callback.onError(e); } } }
RemoteViewsAction extends Action<RemoteViewsAction.RemoteViewsTarget> { @Override public void error(Exception e) { if (errorResId != 0) { setImageResource(errorResId); } if (callback != null) { callback.onError(e); } } 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 public void error(Exception e) { if (errorResId != 0) { setImageResource(errorResId); } if (callback != null) { callback.onError(e); } } 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 public void error(Exception e) { if (errorResId != 0) { setImageResource(errorResId); } if (callback != null) { callback.onError(e); } } 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);  }