diff --git a/GITHUB_CHANGELOG.md b/GITHUB_CHANGELOG.md index 45a1760cdf..4b1553def4 100644 --- a/GITHUB_CHANGELOG.md +++ b/GITHUB_CHANGELOG.md @@ -32,6 +32,7 @@ Compatibility list: * [Lawnchair] Hotseat positioning with favorite icon label enabled placed the same even if label is disabled * [Lawnchair] Hotseat background now have a reasonably sized margin compared to D2 * [Lawnchair] Qsb sizing now correctly estimate the width based on width of the app/widget layout or DeviceProfile on device with inlined Qsb +* [Lawnchair] Reimplement Allapps opacity configuration ### Development 2 diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index f8d21da22e..2663954df6 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -833,11 +833,9 @@ public class ActivityAllAppsContainerView } 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 } return ColorUtils.setAlphaComponent( ColorUtils.blendARGB(mScrimColor, mHeaderProtectionColor, blendRatio), - (int) (mSearchContainer.getAlpha() * 255)); + (int) (opacity * 255)); } /**