diff --git a/app/src/main/java/foundation/e/blisslauncher/core/utils/GraphicsUtil.java b/app/src/main/java/foundation/e/blisslauncher/core/utils/GraphicsUtil.java index 73353637ba5702cce2006897b9f7ebd1b9388291..05296a8c5733cee582595e9044baee320c8b9b8d 100755 --- a/app/src/main/java/foundation/e/blisslauncher/core/utils/GraphicsUtil.java +++ b/app/src/main/java/foundation/e/blisslauncher/core/utils/GraphicsUtil.java @@ -49,7 +49,7 @@ public class GraphicsUtil { * However, if more than 4 drawables are provided, only the first 4 are used. */ public Drawable generateFolderIcon(Context context, Drawable... sources) { - int width = sources[0].getIntrinsicWidth(); + int width = appIconWidth; int height = width; // Square icons Log.i(TAG, "generateFolderIcon: " + width + "*" + height); @@ -118,8 +118,7 @@ public class GraphicsUtil { true); return bitmap; } - - if (bitmap.getWidth() > appIconWidth) { + if (bitmap.getWidth() >= appIconWidth) { bitmap = Bitmap.createScaledBitmap(bitmap, appIconWidth, (appIconWidth * bitmap.getHeight() / bitmap.getWidth()), true);