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

Commit 84eb780e authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

fix delete and enter button in lock screen

parent 5151d9d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package com.android.keyguard;

import static com.android.systemui.bouncer.shared.constants.KeyguardBouncerConstants.ColorId.NUM_PAD_BUTTON;
import static com.android.systemui.bouncer.shared.constants.KeyguardBouncerConstants.ColorId.NUM_PAD_KEY;
import static com.android.systemui.bouncer.shared.constants.KeyguardBouncerConstants.ColorId.NUM_PAD_ICON;

import android.content.Context;
import android.content.res.ColorStateList;
@@ -101,7 +102,7 @@ public class NumPadButton extends AlphaOptimizedImageButton implements NumPadAni
        if (mAnimator != null) mAnimator.reloadColors(getContext());

        int textColorResId = mIsTransparentMode ? NUM_PAD_KEY : NUM_PAD_BUTTON;
        int imageColor = Utils.getColorAttrDefaultColor(getContext(), textColorResId);
        int imageColor = Utils.getColorAttrDefaultColor(getContext(), NUM_PAD_ICON);
        ((VectorDrawable) getDrawable()).setTintList(ColorStateList.valueOf(imageColor));
    }

+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ object KeyguardBouncerConstants {
        const val NUM_PAD_PRESSED = com.android.internal.R.attr.materialColorOnPrimaryFixed
        const val NUM_PAD_KEY = com.android.internal.R.attr.materialColorOnSurface
        const val NUM_PAD_BUTTON = com.android.internal.R.attr.materialColorOnSecondaryFixed
        const val NUM_PAD_ICON = com.android.internal.R.attr.colorBackground
        const val EMERGENCY_BUTTON = com.android.internal.R.attr.materialColorTertiaryFixed
    }
}