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

Commit f7de5aa1 authored by David Christie's avatar David Christie Committed by Android (Google) Code Review
Browse files

Merge "Fixing the default values for pending intent at...

Merge "Fixing the default values for pending intent at LocationPendingIntentTransport." into udc-dev
parents 8f7e233b df4cbfba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -274,6 +274,7 @@ public class LocationProviderManager extends
                throws PendingIntent.CanceledException {
            BroadcastOptions options = BroadcastOptions.makeBasic();
            options.setDontSendToRestrictedApps(true);
            options.setPendingIntentBackgroundActivityLaunchAllowed(false);
            // allows apps to start a fg service in response to a location PI
            options.setTemporaryAppAllowlist(TEMPORARY_APP_ALLOWLIST_DURATION_MS,
                    TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED,
@@ -316,6 +317,7 @@ public class LocationProviderManager extends
                throws PendingIntent.CanceledException {
            BroadcastOptions options = BroadcastOptions.makeBasic();
            options.setDontSendToRestrictedApps(true);
            options.setPendingIntentBackgroundActivityLaunchAllowed(false);

            mPendingIntent.send(mContext, 0, new Intent().putExtra(KEY_PROVIDER_ENABLED, enabled),
                    null, null, null, options.toBundle());