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

Commit 99e6af59 authored by Jakob Schneider's avatar Jakob Schneider Committed by Android (Google) Code Review
Browse files

Merge "Change opacity of the cloud overlay to 50% based on UX feedback." into main

parents e19ed79d 6ff765d6
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -132,6 +132,11 @@ public class PackageArchiver {
    private static final String EXTRA_INSTALLER_TITLE =
            "com.android.content.pm.extra.UNARCHIVE_INSTALLER_TITLE";

    private static final PorterDuffColorFilter OPACITY_LAYER_FILTER =
            new PorterDuffColorFilter(
                    Color.argb(0.5f /* alpha */, 0f /* red */, 0f /* green */, 0f /* blue */),
                    PorterDuff.Mode.SRC_ATOP);

    private final Context mContext;
    private final PackageManagerService mPm;

@@ -746,11 +751,7 @@ public class PackageArchiver {
            return bitmap;
        }
        BitmapDrawable appIconDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
        PorterDuffColorFilter colorFilter =
                new PorterDuffColorFilter(
                        Color.argb(0.32f /* alpha */, 0f /* red */, 0f /* green */, 0f /* blue */),
                        PorterDuff.Mode.SRC_ATOP);
        appIconDrawable.setColorFilter(colorFilter);
        appIconDrawable.setColorFilter(OPACITY_LAYER_FILTER);
        appIconDrawable.setBounds(
                0 /* left */,
                0 /* top */,