feat: Reimplement Allapps opacity configuration

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
Pun Butrach committed 2026-01-10 20:48:39 +07:00
1 parent 7e92d0f888
commit 5a2404b153
2 files changed
+3 -4

No files matched your search

@@ -833,11 +833,9 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
}
protected int getHeaderColor(float blendRatio) {
var opacity = mSearchContainer.getAlpha();
var showHeaderBackground = PreferenceExtensionsKt.firstBlocking(
pref2.getAppDrawerSearchBarBackground());
var opacity = 0.0f;
if (showHeaderBackground) {
opacity = pref.getDrawerOpacity().get();
}
@@ -849,7 +847,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
}
return ColorUtils.setAlphaComponent(
ColorUtils.blendARGB(mScrimColor, mHeaderProtectionColor, blendRatio),
(int) (mSearchContainer.getAlpha() * 255));
(int) (opacity * 255));
}
/**