Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9d27f13 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Updating method for getting themed icon

Bug: 183641907
Test: Manual
Change-Id: I417886acea1b518c184d8e7c649367cae841a7e4
parent 6a69ff55
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -74,10 +74,10 @@ import androidx.core.os.BuildCompat;
import com.android.launcher3.dragndrop.FolderAdaptiveIcon;
import com.android.launcher3.graphics.GridCustomizationsProvider;
import com.android.launcher3.graphics.TintedDrawableSpan;
import com.android.launcher3.icons.BitmapInfo;
import com.android.launcher3.icons.FastBitmapDrawable;
import com.android.launcher3.icons.LauncherIcons;
import com.android.launcher3.icons.ShortcutCachingLogic;
import com.android.launcher3.icons.ThemedIconDrawable.ThemedAdaptiveIcon;
import com.android.launcher3.model.data.ItemInfo;
import com.android.launcher3.model.data.ItemInfoWithIcon;
import com.android.launcher3.pm.ShortcutConfigActivityInfo;
@@ -654,8 +654,8 @@ public final class Utilities {
    public static Drawable getFullDrawable(Launcher launcher, ItemInfo info, int width, int height,
            Object[] outObj) {
        Drawable icon = loadFullDrawableWithoutTheme(launcher, info, width, height, outObj);
        if (icon instanceof ThemedAdaptiveIcon) {
            icon = ((ThemedAdaptiveIcon) icon).getThemedDrawable(launcher);
        if (icon instanceof BitmapInfo.Extender) {
            icon = ((BitmapInfo.Extender) icon).getThemedDrawable(launcher);
        }
        return icon;
    }