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

Commit 4481b805 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 DetailDialogTest
Flag: EXEMPT refactor
Bug: 352182359
Change-Id: I6f5d83b827924cec6c547142ff3a5ddf06c785d5
parent aa86e4a7
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -89,10 +89,7 @@ class DetailDialogTest : SysuiTestCase() {
        verify(taskView).startActivity(any(), any(), capture(optionsCaptor), any())

        assertThat(optionsCaptor.value.pendingIntentBackgroundActivityStartMode)
            .isAnyOf(ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED,
                ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS)
        assertThat(optionsCaptor.value.isPendingIntentBackgroundActivityLaunchAllowedByPermission)
            .isTrue()
            .isEqualTo(ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS)
        assertThat(optionsCaptor.value.taskAlwaysOnTop).isTrue()
    }