Merge "Allow RemoteViews to start Activities via PI" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ede362ddff
@@ -6717,6 +6717,10 @@ public class RemoteViews implements Parcelable, Filter {
|
||||
Log.w(LOG_TAG, "getLaunchOptions: view.getDisplay() is null!",
|
||||
new Exception());
|
||||
}
|
||||
// If the user interacts with a visible element it is safe to assume they consent that
|
||||
// something is going to start.
|
||||
opts.setPendingIntentBackgroundActivityStartMode(
|
||||
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
|
||||
return Pair.create(intent, opts);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user