mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Two-zone model: swipe up from nav bar vs above it
When ENABLE_OVERVIEW_ACTIONS flag is enabled, swiping up from the nav
bar goes to overview if you hold, or the first home screen if you don't.
- Added NoButtonNavBarToOverviewTouchController, which extends
FlingAndHoldTouchController but only works if you start from the nav
bar. Otherwise it falls back to PortraitStatesTouchController to
handle normal state transition to all apps.
- Added HintState. This is where the workspace/hotseat/qsb scale down
when you swipe up from the nav bar, to hint that you're about to
either go to overview or the first home screen.
- Added getQsbScaleAndTranslation() to allow Overview and Hint states
to treat it as part of the hotseat.
- Since Overview needs to show above the QSB as it's animating, bring
Overview to the front and update OverviewScrim to handle the case
where there's no view above Overview to draw the scrim beneath.
- ENABLE_OVERVIEW_ACTIONS is always false in 2-button mode, since the
shelf is crucial to that mode.
Bug: 143361609
Change-Id: I743481bb239dc77f7024dc98ba68a43534da2637
This commit is contained in:
@@ -31,6 +31,7 @@ public final class TestProtocol {
|
||||
public static final int QUICK_SWITCH_STATE_ORDINAL = 4;
|
||||
public static final int ALL_APPS_STATE_ORDINAL = 5;
|
||||
public static final int BACKGROUND_APP_STATE_ORDINAL = 6;
|
||||
public static final int HINT_STATE_ORDINAL = 7;
|
||||
public static final String TAPL_EVENTS_TAG = "TaplEvents";
|
||||
|
||||
public static String stateOrdinalToString(int ordinal) {
|
||||
@@ -49,6 +50,8 @@ public final class TestProtocol {
|
||||
return "AllApps";
|
||||
case BACKGROUND_APP_STATE_ORDINAL:
|
||||
return "Background";
|
||||
case HINT_STATE_ORDINAL:
|
||||
return "Hint";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user