From c61dadd7325294fef8019e8ecf89c84a12fa79e1 Mon Sep 17 00:00:00 2001 From: MrSluffy Date: Mon, 16 Dec 2024 13:49:39 +0800 Subject: [PATCH] fixed disappearing folder app in folder to home --- src/com/android/launcher3/Utilities.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index dbb199dc2e..878a2c9b6a 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -769,7 +769,8 @@ public final class Utilities { } AdaptiveIconDrawable result; - if(ExtendedBitmapDrawable.isFromIconPack(mainIcon) || !PreferenceManager.INSTANCE.get(context).getWrapAdaptiveIcons().get()) return null; + if (ExtendedBitmapDrawable.isFromIconPack(mainIcon) || (!PreferenceManager.INSTANCE.get(context).getWrapAdaptiveIcons().get() && info.itemType != LauncherSettings.Favorites.ITEM_TYPE_FOLDER)) + return null; if (mainIcon instanceof AdaptiveIconDrawable aid) { result = aid; } else {