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

Commit d5f50e48 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Replace get/setPendingIntentBackgroundActivityLaunchAllowedByPermission

Replace usages of the old get/setPendingIntentBackgroundActivityLaunchAllowedByPermission
API with the new replacement (passing in mode = ALWAYS).

Test: atest DragAndDropPolicyTest StageCoordinatorTests AlarmManagerServiceTest BackgroundActivityStartControllerExemptionTests BackgroundActivityStartControllerTests ActivityOptionsTest ActivityStarterTests BackgroundActivityLaunchTest
Flag: EXEMPT refactor
Bug: 352182359
Change-Id: I0441907513a7e8e309fe6bfd9adabc716d136068
parent 12b7d297
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -7438,8 +7438,7 @@ public class RemoteViews implements Parcelable, Filter {
            // 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);
            opts.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true);
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS);
            return Pair.create(intent, opts);
        }
    }