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

Commit 12e20825 authored by James O'Leary's avatar James O'Leary Committed by Automerger Merge Worker
Browse files

Merge "Separate color into app color and dot color; specify dot color" into...

Merge "Separate color into app color and dot color; specify dot color" into tm-dev am: 508fbbff am: 2cc50ce1

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18167227



Change-Id: I4694b22c30330235791898765f212feb72786eb1
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 25f9f045 2cc50ce1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView {
                : null;
        super.applyFromWorkspaceItem(info, animate, staggerIndex);
        int oldPlateColor = mPlateColor;
        int newPlateColor = ColorUtils.setAlphaComponent(mDotParams.color, 200);
        int newPlateColor = ColorUtils.setAlphaComponent(mDotParams.appColor, 200);
        if (!animate) {
            mPlateColor = newPlateColor;
        }
+5 −2
Original line number Diff line number Diff line
@@ -253,7 +253,8 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
     */
    public void reset() {
        mDotInfo = null;
        mDotParams.color = Color.TRANSPARENT;
        mDotParams.dotColor = Color.TRANSPARENT;
        mDotParams.appColor = Color.TRANSPARENT;
        cancelDotScaleAnim();
        mDotParams.scale = 0f;
        mForceHideDot = false;
@@ -381,7 +382,9 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
            flags |= FLAG_NO_BADGE;
        }
        FastBitmapDrawable iconDrawable = info.newIcon(getContext(), flags);
        mDotParams.color = iconDrawable.getIconColor();
        mDotParams.appColor = iconDrawable.getIconColor();
        mDotParams.dotColor = getContext().getResources()
                .getColor(android.R.color.system_accent3_100, getContext().getTheme());
        setIcon(iconDrawable);
        applyLabel(info);
    }
+1 −1
Original line number Diff line number Diff line
@@ -637,7 +637,7 @@ public class FolderIcon extends FrameLayout implements FolderListener, IconLabel

            // If we are animating to the accepting state, animate the dot out.
            mDotParams.scale = Math.max(0, mDotScale - mBackground.getScaleProgress());
            mDotParams.color = mBackground.getDotColor();
            mDotParams.dotColor = mBackground.getDotColor();
            mDotRenderer.draw(canvas, mDotParams);
        }
    }