* commit 'd15958f661c8748b811e6b12642321f4e47f2817': Early return in RemoteViewsAdapter is too late
This commit is contained in:
@@ -817,12 +817,12 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
|
||||
mContext = context;
|
||||
mIntent = intent;
|
||||
|
||||
mAppWidgetId = intent.getIntExtra(RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID, -1);
|
||||
|
||||
mLayoutInflater = LayoutInflater.from(context);
|
||||
if (mIntent == null) {
|
||||
throw new IllegalArgumentException("Non-null Intent must be specified.");
|
||||
}
|
||||
|
||||
mAppWidgetId = intent.getIntExtra(RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID, -1);
|
||||
mLayoutInflater = LayoutInflater.from(context);
|
||||
mRequestedViews = new RemoteViewsFrameLayoutRefSet();
|
||||
|
||||
// Strip the previously injected app widget id from service intent
|
||||
|
||||
Reference in New Issue
Block a user