mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
[Overview Actions] UI update for Landscape.
1. When home screen rotation is allowed, we still have action buttons for landscape, but remove bottom margin to shrink the UI. 2. When home screen rotation is not allowed, we do in-place rotation for overview, where we won't show action buttons. Test: see demo video: https://drive.google.com/file/d/1G6ihv_DOykx1MLpFAQf3VJHq3D1HotnX/view?usp=sharing Bug: 153736749 Change-Id: Ia1c7ef8c245ac13bf50adf32ee5114f23e491e75
This commit is contained in:
@@ -93,7 +93,7 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
public void onNavigationModeChanged(Mode newMode) {
|
||||
getDragLayer().recreateControllers();
|
||||
if (mActionsView != null && isOverviewActionsEnabled()) {
|
||||
mActionsView.updateVerticalMarginForNavModeChange(newMode);
|
||||
mActionsView.updateVerticalMargin(newMode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
// Overview is above all other launcher elements, including qsb, so move it to the top.
|
||||
getOverviewPanel().bringToFront();
|
||||
mActionsView.bringToFront();
|
||||
mActionsView.updateVerticalMarginForNavModeChange(SysUINavigationMode.getMode(this));
|
||||
mActionsView.updateVerticalMargin(SysUINavigationMode.getMode(this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user