Support split from fullscreen with shortcuts

Recording: https://recall.googleplex.com/projects/f46cfe9c-8076-4efe-bf8a-b1cc4f1f5e1b/sessions/978a3a55-2982-4026-9726-2a73cb694258

TODO: improve transition animation

Bug: 246661484
Test: manual
Change-Id: Id0d1aec0685bc18f4b273f8e466996efc1d9a3d8
Merged-In: Id0d1aec0685bc18f4b273f8e466996efc1d9a3d8
This commit is contained in:
Tracy Zhou
2022-10-14 01:28:07 -07:00
parent 17137e8bce
commit ba0b5952c8
12 changed files with 417 additions and 92 deletions

View File

@@ -182,4 +182,12 @@ public final class SplitConfigurationOptions {
? LAUNCHER_APP_ICON_MENU_SPLIT_LEFT_TOP
: LAUNCHER_APP_ICON_MENU_SPLIT_RIGHT_BOTTOM;
}
public static @StagePosition int getOppositeStagePosition(@StagePosition int position) {
if (position == STAGE_POSITION_UNDEFINED) {
return position;
}
return position == STAGE_POSITION_TOP_OR_LEFT ? STAGE_POSITION_BOTTOM_OR_RIGHT
: STAGE_POSITION_TOP_OR_LEFT;
}
}