From 3f6a4e6bf5c1618583770a88a16a0647df8a27d2 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 9 Aug 2021 17:45:22 -0700 Subject: [PATCH] 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) --- .../android/launcher3/uioverrides/states/AllAppsState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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