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

Commit ffd503a6 authored by Marcelo Arteiro's avatar Marcelo Arteiro Committed by Android Build Coastguard Worker
Browse files

Fix numPadAnimator bug when colorControlNormal isn't found.

This resulted in the enter and delete buttons with wrong colors in keyguard.

Test: manually
Bug: 383230490
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:456df54d7ebb27e056de1feef31e1305c89692f8)
Merged-In: Iec4f8a2ccb97e8f7a50731555e1d1849090c550f
Change-Id: Iec4f8a2ccb97e8f7a50731555e1d1849090c550f
parent 1814c9bf
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -122,7 +122,11 @@ class NumPadAnimator {

        int[] customAttrs = {android.R.attr.colorControlNormal};
        ContextThemeWrapper ctw = new ContextThemeWrapper(context, mStyle);
        mNormalBackgroundColor = ctw.getColor(NUM_PAD_BACKGROUND);
        @SuppressLint("ResourceType") TypedArray a = ctw.obtainStyledAttributes(customAttrs);

        mNormalBackgroundColor = a.getColor(0, context.getColor(NUM_PAD_BACKGROUND));

        a.recycle();

        mPressedBackgroundColor = context.getColor(NUM_PAD_BACKGROUND_PRESSED);
        mTextColorPressed = context.getColor(NUM_PAD_PRESSED);