Merge "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;
|
mContext = context;
|
||||||
mIntent = intent;
|
mIntent = intent;
|
||||||
|
|
||||||
mAppWidgetId = intent.getIntExtra(RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID, -1);
|
|
||||||
|
|
||||||
mLayoutInflater = LayoutInflater.from(context);
|
|
||||||
if (mIntent == null) {
|
if (mIntent == null) {
|
||||||
throw new IllegalArgumentException("Non-null Intent must be specified.");
|
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();
|
mRequestedViews = new RemoteViewsFrameLayoutRefSet();
|
||||||
|
|
||||||
// Strip the previously injected app widget id from service intent
|
// Strip the previously injected app widget id from service intent
|
||||||
|
|||||||
Reference in New Issue
Block a user