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

Commit a71269e3 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Updating method for getting themed icon" into sc-dev

parents e6521ad5 e9d27f13
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;
    }