Desks: Let split-select and recents use a combined WCT

Flag: com.android.window.flags.enable_multiple_desktops_backend
Bug: 409639676
Test: enter split from desktop handle menu, verify it enters split
select

Change-Id: Ib215ce9666fb4a07101ff32a78aebef0c8198749
This commit is contained in:
Jorge Gil
2025-04-16 16:45:59 +00:00
parent fede3aee46
commit 82ad2a0387
5 changed files with 64 additions and 47 deletions

View File

@@ -85,7 +85,8 @@ public class TaskAnimationManagerTest {
final ArgumentCaptor<ActivityOptions> optionsCaptor =
ArgumentCaptor.forClass(ActivityOptions.class);
verify(mSystemUiProxy)
.startRecentsActivity(any(), optionsCaptor.capture(), any(), anyBoolean());
.startRecentsActivity(any(), optionsCaptor.capture(), any(), anyBoolean(),
any());
assertEquals(ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS,
optionsCaptor.getValue().getPendingIntentBackgroundActivityStartMode());
}
@@ -117,7 +118,7 @@ public class TaskAnimationManagerTest {
doReturn(mock(LauncherActivityInterface.class)).when(gestureState).getContainerInterface();
when(mSystemUiProxy
.startRecentsActivity(any(), any(), listenerCaptor.capture(), anyBoolean()))
.startRecentsActivity(any(), any(), listenerCaptor.capture(), anyBoolean(), any()))
.thenReturn(true);
when(gestureState.getRunningTaskIds(anyBoolean())).thenReturn(new int[0]);