Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9404c7b4 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

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
Change-Id: Iac47e200770fe53a7fb89be15211dd627dbe9558
parent 134966d7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -6948,6 +6948,7 @@ public class RemoteViews implements Parcelable, Filter {
            // something is going to start.
            // something is going to start.
            opts.setPendingIntentBackgroundActivityStartMode(
            opts.setPendingIntentBackgroundActivityStartMode(
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
            opts.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true);
            return Pair.create(intent, opts);
            return Pair.create(intent, opts);
        }
        }
    }
    }