From b3459574f43c95752c65aedb4bd0fd984190b0b5 Mon Sep 17 00:00:00 2001 From: Andy Wickham Date: Fri, 14 Mar 2025 22:38:12 +0000 Subject: [PATCH] Remove header protection for blurred app panel. As requested here: https://docs.google.com/presentation/d/1BKFfB2LAIDoaA5aLs8did6IcUw_pktrSWI5xmypkl3s/edit?resourcekey=0-HpXwztiEYGe0BYQzUeBBbQ&pli=1&disco=AAABe0KKmWU Demo: https://drive.google.com/file/d/19kf1BzfOL3-umWwmxLDFnCXrw08IeHIB/view?usp=sharing&resourcekey=0-dMDKrgz4-qEnhvneHI_EQw Bug: 400827727 Bug: 371343636 Test: Manual Flag: com.android.launcher3.all_apps_blur Change-Id: Id8560e0d8b95f454bbd96bf484f4578bf505c88e --- .../launcher3/allapps/ActivityAllAppsContainerView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index 3d8ebbc75b..2780f893a3 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -1425,6 +1425,11 @@ public class ActivityAllAppsContainerView mTmpPath.reset(); mTmpPath.addRoundRect(mTmpRectF, mBottomSheetCornerRadii, Direction.CW); canvas.drawPath(mTmpPath, mHeaderPaint); + + // When the background panel is blurred, we don't add header protection. + if (Flags.allAppsBlur()) { + return; + } } if (DEBUG_HEADER_PROTECTION) {