diff options
author | Lucas Dupin <dupin@google.com> | 2021-08-09 17:45:22 -0700 |
---|---|---|
committer | Lucas Dupin <dupin@google.com> | 2021-08-11 15:55:04 +0000 |
commit | 3f6a4e6bf5c1618583770a88a16a0647df8a27d2 (patch) | |
tree | 73c2cd12d047f3352af9a04ae090a29f8d4fa35e | |
parent | 8bc9c6355ad2d274f488396488bd0ad8ea8fb081 (diff) | |
download | Launcher3-3f6a4e6bf5c1618583770a88a16a0647df8a27d2.tar.gz |
Adjust all apps zoom level
The All Apps scrim fades in early, covering part of the zoom animation.
We need to adjust the max zoom in order to make All Apps consistent with
Overview, -1, and Shade.
Test: pull up the all apps drawer
Fixes: 195992422
Change-Id: Ia7bbe17fe7f227dd0a16ba7d21b402cff57176f0
(cherry picked from commit f168bb7aaf94dc3e7c483278ee6eb671485c38c1)
-rw-r--r-- | quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java index d822c8cf82..f8c9fd128f 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java +++ b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java @@ -70,7 +70,9 @@ public class AllAppsState extends LauncherState { @Override protected float getDepthUnchecked(Context context) { - return 1f; + // The scrim fades in at approximately 50% of the swipe gesture. + // This means that the depth should be greater than 1, in order to fully zoom out. + return 2f; } @Override |