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

Commit da9f748e authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: hide parent app badges from shortcuts

parent 4c3d20f4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -105,6 +105,8 @@ import java.util.function.Predicate;

import foundation.e.bliss.multimode.MultiModeController;

import foundation.e.bliss.multimode.MultiModeController;

/**
 * Various utilities shared amongst the Launcher's classes.
 */
@@ -640,7 +642,8 @@ public final class Utilities {
        Drawable mainIcon = null;

        Drawable badge = null;
        if ((info instanceof ItemInfoWithIcon iiwi) && !iiwi.getMatchingLookupFlag().useLowRes()) {
        if ((info instanceof ItemInfoWithIcon iiwi) && !iiwi.getMatchingLookupFlag().useLowRes()
                && !MultiModeController.isSingleLayerMode()) {
            badge = iiwi.bitmap.getBadgeDrawable(context, useTheme, getIconShapeOrNull(context));
        }

@@ -727,7 +730,7 @@ public final class Utilities {
                            .applyBitmapInfoFlags(FlagOp.NO_OP)
                    )
                    .getBadgeDrawable(context, useTheme, getIconShapeOrNull(context));
            if (badge == null) {
            if (badge == null || MultiModeController.isSingleLayerMode()) {
                badge = new ColorDrawable(Color.TRANSPARENT);
            }
        }