Merge "Allow RemoteViews to start Activities via PI" into udc-dev

This commit is contained in:
Achim Thesmann
2023-02-22 18:37:37 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}