diff --git a/lawnchair/src/app/lawnchair/ui/preferences/destinations/IconPackPreferences.kt b/lawnchair/src/app/lawnchair/ui/preferences/destinations/IconPackPreferences.kt index 880998bdc1..5dca79c83c 100644 --- a/lawnchair/src/app/lawnchair/ui/preferences/destinations/IconPackPreferences.kt +++ b/lawnchair/src/app/lawnchair/ui/preferences/destinations/IconPackPreferences.kt @@ -124,6 +124,7 @@ fun IconPackPreferences( val isPortrait = LocalConfiguration.current.orientation == Configuration.ORIENTATION_PORTRAIT val scrollState = rememberScrollState() val drawerThemedIconsEnabled = drawerThemedIconsAdapter.state.value + val tintIconpack = prefs.tintIconPackBackgrounds.getAdapter() PreferenceLayout( label = stringResource(id = R.string.icon_style_label), @@ -145,7 +146,7 @@ fun IconPackPreferences( .clip(MaterialTheme.shapes.large), ) { WallpaperPreview(modifier = Modifier.fillMaxSize()) - key(iconPackAdapter.state.value, themedIconPackAdapter.state.value, themedIconsAdapter.state.value) { + key(iconPackAdapter.state.value, themedIconPackAdapter.state.value, themedIconsAdapter.state.value, tintIconpack.state.value) { DummyLauncherLayout( idp = invariantDeviceProfile(), modifier = Modifier.fillMaxSize(), diff --git a/platform_frameworks_libs_systemui b/platform_frameworks_libs_systemui index b31fbcff3f..c43f720009 160000 --- a/platform_frameworks_libs_systemui +++ b/platform_frameworks_libs_systemui @@ -1 +1 @@ -Subproject commit b31fbcff3f2bd212d82f673ca4c6d831c47b1a47 +Subproject commit c43f7200097ed90282ddcdb62437578128e43afb diff --git a/src/com/android/launcher3/model/data/ItemInfoWithIcon.java b/src/com/android/launcher3/model/data/ItemInfoWithIcon.java index 34a1ec6f59..0c5d7c741b 100644 --- a/src/com/android/launcher3/model/data/ItemInfoWithIcon.java +++ b/src/com/android/launcher3/model/data/ItemInfoWithIcon.java @@ -314,17 +314,15 @@ public abstract class ItemInfoWithIcon extends ItemInfo { * Returns a FastBitmapDrawable with the icon. */ public FastBitmapDrawable newIcon(Context context) { - return newIcon(context, PreferenceManager.getInstance(context).getThemedIcons().get()); + return bitmap.newIcon(context); } /** * Returns a FastBitmapDrawable with the icon and context theme applied */ public FastBitmapDrawable newIcon(Context context, boolean applyTheme) { - FastBitmapDrawable drawable = applyTheme - ? bitmap.newThemedIcon(context) : bitmap.newIcon(context, BitmapInfo.FLAG_NO_BADGE); - drawable.setIsDisabled(isDisabled()); - return drawable; + return applyTheme && PreferenceManager.getInstance(context).getThemedIcons().get() + ? bitmap.newIcon(context) : bitmap.newIcon(context, BitmapInfo.FLAG_NO_BADGE); } /**