Allow RemoteViews to use BAL privileges
Remoteviews' interaction handler already grants regular BAL privileges as any interaction with a RemoteViews originates from a user interaction. It should normally be implied that for an user to interact with a RemoteViews the view needs to be visible. This does not hold true for the -1 screen (where it is still visible, but the system does not track it as visible). Bug: 296080239 Test: manual test (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9404c7b42e8b572e42c6affcec34da321e37fa75) Merged-In: Iac47e200770fe53a7fb89be15211dd627dbe9558 Change-Id: Iac47e200770fe53a7fb89be15211dd627dbe9558
This commit is contained in:
committed by
Cherrypicker Worker
parent
9a3027b93b
commit
cc9ee1d5c4
@@ -6945,6 +6945,7 @@ public class RemoteViews implements Parcelable, Filter {
|
||||
// something is going to start.
|
||||
opts.setPendingIntentBackgroundActivityStartMode(
|
||||
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
|
||||
opts.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true);
|
||||
return Pair.create(intent, opts);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user