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

Commit 91c990a7 authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

Merge branch 'issue-793' into 'master'

Tiny app icons in group icon

See merge request e/apps/BlissLauncher!37
parents b593a636 22289799
Loading
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);