commit | f168bb7aaf94dc3e7c483278ee6eb671485c38c1 | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Mon Aug 09 17:45:22 2021 -0700 |
committer | Lucas Dupin <dupin@google.com> | Mon Aug 09 17:45:22 2021 -0700 |
tree | 33339070250af2610d0631bcb12fed6542a99675 | |
parent | 646f804627625bfccb817bae720ae1336b39dc46 [diff] |
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
diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java index d822c8c..f8c9fd1 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 @@ @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