mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user