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

Commit 22289799 authored by Dayona Joseph's avatar Dayona Joseph Committed by Romain Hunault
Browse files

Tiny app icons in group icon

parent b593a636
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);