From f168bb7aaf94dc3e7c483278ee6eb671485c38c1 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 --- .../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