Skip to content

Commit 6a3d504

Browse files
fix(icons): prevent icon pack icons from showing in app list when disabled
The `setAppTitleIcon` method now respects the `iconPackAppList` preference. When set to `Disabled`, the app drawer will no longer display icon pack icons next to app titles.
1 parent bf82490 commit 6a3d504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/droidworksstudio/mlauncher/ui/adapter/AppDrawerAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ class AppDrawerAdapter(
515515

516516
// Helper to set icon on appTitle with correct size and alignment
517517
private fun setAppTitleIcon(appTitle: TextView, icon: Drawable?, prefs: Prefs) {
518-
if (icon == null) {
518+
if (icon == null || prefs.iconPackAppList == Constants.IconPacks.Disabled) {
519519
appTitle.setCompoundDrawables(null, null, null, null)
520520
return
521521
}

0 commit comments

Comments
 (0)