Fix All Apps fallback colors.
Spec is linked in the bug. Test: Manual Fix: 415847439 Flag: com.android.launcher3.all_apps_blur Change-Id: I805aff19bb3d15d479b7c2c026f041c35585efd2
This commit is contained in:
1 parent
359280ef2c
commit
58fd27a0cb
2 files changed
+9
-17
No files matched your search
@@ -323,8 +323,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
int layerBg = getContext().getColor(R.color.blur_shade_panel_bg);
|
||||
mBottomSheetBackgroundColorOverBlur = ColorUtils.compositeColors(layerFg, layerBg);
|
||||
mBottomSheetBackgroundColorBlurFallback = getContext().getColor(
|
||||
Utilities.isDarkTheme(getContext()) ? android.R.color.system_accent1_800
|
||||
: android.R.color.system_accent2_100);
|
||||
Utilities.isDarkTheme(getContext()) ? android.R.color.system_accent2_800
|
||||
: android.R.color.system_accent2_200);
|
||||
}
|
||||
|
||||
mBottomSheetBackgroundColorLegacy = getContext().getColor(R.color.materialColorSurfaceDim);
|
||||
@@ -1486,8 +1486,9 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
mTmpPath.addRoundRect(mTmpRectF, mBottomSheetCornerRadii, Direction.CW);
|
||||
canvas.drawPath(mTmpPath, mHeaderPaint);
|
||||
|
||||
// When the background panel is blurred, we don't add header protection.
|
||||
if (isBackgroundBlurEnabled()) {
|
||||
// When the background panel is blurred (or fallback), we don't add header protection.
|
||||
// TODO (b/414671116): Apply header protection whenever search bar is focused.
|
||||
if (Flags.allAppsBlur()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user