From af20dc761c3eff0ab4f952b3360b314329f11d31 Mon Sep 17 00:00:00 2001 From: Fengjiang Li Date: Wed, 17 Apr 2024 15:03:58 -0700 Subject: [PATCH] [Predictive Back] Swipe back within workspace all apps should only scale down content view, rather than whole all apps sheet Fix: 335467443 Test: manual - took a video Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TRUNKFOOD Change-Id: I97f2bfa47dbb7d4866c5d2864ee9cd059a94ca5c --- .../launcher3/allapps/AllAppsTransitionController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java index 564daf1cc8..1b0ad04e89 100644 --- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java +++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java @@ -294,7 +294,9 @@ public class AllAppsTransitionController private void onScaleProgressChanged() { final float scaleProgress = mAllAppScale.value; SCALE_PROPERTY.set(mLauncher.getAppsView(), scaleProgress); - mLauncher.getScrimView().setScrimHeaderScale(scaleProgress); + if (!mLauncher.getAppsView().isSearching() || !mLauncher.getDeviceProfile().isTablet) { + mLauncher.getScrimView().setScrimHeaderScale(scaleProgress); + } AllAppsRecyclerView rv = mLauncher.getAppsView().getActiveRecyclerView();