Only update All Apps scrim (panel) when blur state changes.

Previously we updated many other things, such as the buttons and RV
decorators, but the latest UX guidance is to use the same colors
when blurs are enabled or disabled, other than the panel color.

Note: When Overview blur is enabled, the activity is recreated and
this change is redundant. So this is only done if that flag is off.

Demo with home and taskbar all apps (toggling blur with adb):
https://drive.google.com/file/d/1HzveExKpAERxMVdu7JXQSYeGRwaBNR4_/view?usp=sharing&resourcekey=0-l-dGWOS6aCQjj2KStvwySA

Fix: 413229346
Flag: com.android.launcher3.all_apps_blur
Test: Manual with battery saver and `adb shell wm disable-blur 1` / 0
Change-Id: I55c9b46f0999c574c29a6ac7ae557b1e30d91d15
This commit is contained in:
Andy Wickham committed 2025-05-19 19:20:34 -07:00
1 parent 982b08ede0
commit dc681e83e7
7 files changed
+6 -60

No files matched your search

@@ -50,7 +50,6 @@ import android.os.UserManager;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseArray;
import android.view.ContextThemeWrapper;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
@@ -857,17 +856,6 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
return Flags.allAppsBlur() && mActivityContext.isAllAppsBackgroundBlurEnabled();
}
/** Refresh the UI according to the current theme. */
public void onThemeChanged(ContextThemeWrapper contextThemeWrapper) {
updateHeaderScroll(getActiveRecyclerView().computeVerticalScrollOffset());
invalidateHeader();
forAllRecyclerViews(RecyclerView::invalidateItemDecorations);
getSearchUiManager().onThemeChanged();
getFloatingHeaderView().updateTheme(contextThemeWrapper);
mBottomSheetHandle.setBackground(contextThemeWrapper.getDrawable(
R.drawable.bg_rounded_corner_bottom_sheet_handle));
}
/**
* @return true if the search bar is floating above this container (at the bottom of the screen)
*/