Ensure an opaque scrim is used for legacy all apps.

When there's no background panel, we should ensure an opaque
background scrim is used.

Fix: 414718408
Test: Manual with all_apps_blur and all_apps_sheet_for_handheld off.
Flag: EXEMPT bugfix
Change-Id: I1ac9f5f8fbb01f2c6a42e9f79823b5f293ebf709
This commit is contained in:
Andy Wickham committed 2025-05-02 13:49:51 -07:00
1 parent 7a2d5b454f
commit 4efae39779
2 files changed
+12 -7

No files matched your search

@@ -268,11 +268,13 @@ public class TaskbarAllAppsSlideInView extends AbstractSlideInView<TaskbarOverla
@Override
protected int getScrimColor(Context context) {
if (mActivityContext.getDeviceProfile().shouldShowAllAppsOnSheet()
&& !Flags.allAppsBlur()) {
return context.getResources().getColor(R.color.widgets_picker_scrim);
if (!mActivityContext.getDeviceProfile().shouldShowAllAppsOnSheet()) {
// Always use an opaque scrim if there's no sheet.
return context.getResources().getColor(R.color.materialColorSurfaceDim);
}
return Themes.getAttrColor(context, R.attr.allAppsScrimColor);
return Flags.allAppsBlur() ? Themes.getAttrColor(context, R.attr.allAppsScrimColor)
: context.getResources().getColor(R.color.widgets_picker_scrim);
}
@Override