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

Commit d84f771f authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Do not apply legacy treatment on shortcuts

Bug: 62617041

Change-Id: I56a04536fe1bcba9912c5da3ce5a9c9b75bc3506
parent 5a1ca575
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -468,7 +468,7 @@ public class WidgetPreviewLoader {
        RectF boxRect = drawBoxWithShadow(c, size, size);

        Bitmap icon = LauncherIcons.createScaledBitmapWithoutShadow(
                mutateOnMainThread(info.getFullResIcon(mIconCache)), mContext, Build.VERSION_CODES.O);
                mutateOnMainThread(info.getFullResIcon(mIconCache)), mContext, 0);
        Rect src = new Rect(0, 0, icon.getWidth(), icon.getHeight());

        boxRect.set(0, 0, iconSize, iconSize);
+1 −2
Original line number Diff line number Diff line
@@ -322,8 +322,7 @@ public class LauncherIcons {
        IconCache cache = app.getIconCache();
        Bitmap unbadgedBitmap = unbadgedDrawable == null
                ? cache.getDefaultIcon(Process.myUserHandle())
                : LauncherIcons.createScaledBitmapWithoutShadow(unbadgedDrawable, context,
                Build.VERSION_CODES.O);
                : LauncherIcons.createScaledBitmapWithoutShadow(unbadgedDrawable, context, 0);

        if (!badged) {
            return unbadgedBitmap;
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ public class PendingItemDragHelper extends DragPreviewProvider {
        } else {
            PendingAddShortcutInfo createShortcutInfo = (PendingAddShortcutInfo) mAddInfo;
            Drawable icon = createShortcutInfo.activityInfo.getFullResIcon(app.getIconCache());
            preview = LauncherIcons.createScaledBitmapWithoutShadow(icon, launcher, Build.VERSION_CODES.O);
            preview = LauncherIcons.createScaledBitmapWithoutShadow(icon, launcher, 0);
            mAddInfo.spanX = mAddInfo.spanY = 1;
            scale = ((float) launcher.getDeviceProfile().iconSizePx) / preview.getWidth();