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

Commit 2db823ad 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 DesktopTasksControllerTest
Flag: EXEMPT refactor
Bug: 352182359
Change-Id: I167237e3716d1eddeb2fef62fd1773c1b9ae7c18
parent 4b85f98d
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -949,9 +949,8 @@ class DesktopTasksController(
        val options =
        val options =
            ActivityOptions.makeBasic().apply {
            ActivityOptions.makeBasic().apply {
                launchWindowingMode = newTaskWindowingMode
                launchWindowingMode = newTaskWindowingMode
                isPendingIntentBackgroundActivityLaunchAllowedByPermission = true
                pendingIntentBackgroundActivityStartMode =
                pendingIntentBackgroundActivityStartMode =
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS
            }
            }
        val launchIntent = PendingIntent.getActivity(
        val launchIntent = PendingIntent.getActivity(
            context,
            context,