Replace get/setPendingIntentBackgroundActivityLaunchAllowedByPermission
Replace usages of the old get/setPendingIntentBackgroundActivityLaunchAllowedByPermission API with the new replacement (passing in mode = ALWAYS). Test: atest TaskAnimationManagerTest Flag: EXEMPT refactor Bug: 352182359 Change-Id: I76998b2bfa9d76ab3659ddd4d4c42d74872f5b2f
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.android.quickstep;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
@@ -71,7 +71,7 @@ public class TaskAnimationManagerTest {
|
||||
final ArgumentCaptor<ActivityOptions> optionsCaptor =
|
||||
ArgumentCaptor.forClass(ActivityOptions.class);
|
||||
verify(mSystemUiProxy).startRecentsActivity(any(), optionsCaptor.capture(), any());
|
||||
assertTrue(optionsCaptor.getValue()
|
||||
.isPendingIntentBackgroundActivityLaunchAllowedByPermission());
|
||||
assertEquals(ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS,
|
||||
optionsCaptor.getValue().getPendingIntentBackgroundActivityStartMode());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user