diff options
author | Daniel Norman <danielnorman@google.com> | 2021-02-08 11:11:18 -0800 |
---|---|---|
committer | Daniel Norman <danielnorman@google.com> | 2021-02-17 08:39:59 -0800 |
commit | 337095f9d277c566cb888bc3adbac16576f1ae70 (patch) | |
tree | 8818a5cd44fdfa89f7ef4d8570dbc67239e087dd /packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java | |
parent | 80b7ed3f7373212a33fe42af8a7b7fc0ebcb187c (diff) | |
parent | a66768631e6f47e1f7ffcf4ec86f96d6e8f35282 (diff) |
Merge SP1A.210208.001
Change-Id: I7d4929024872b369444e276a60ded06e37b1fefb
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java index 4ddfccb21c73..6a6b964c2a8f 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java @@ -27,10 +27,8 @@ import android.content.Context; import android.content.res.ColorStateList; import android.graphics.Rect; import android.util.AttributeSet; -import android.view.ContextThemeWrapper; import android.view.KeyEvent; import android.view.View; -import android.widget.ImageButton; import com.android.internal.widget.LockscreenCredential; import com.android.settingslib.Utils; @@ -42,10 +40,9 @@ import com.android.systemui.R; public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView { protected PasswordTextView mPasswordEntry; - private View mOkButton; - private ImageButton mDeleteButton; + private NumPadButton mOkButton; + private NumPadButton mDeleteButton; private NumPadKey[] mButtons = new NumPadKey[10]; - private View mDivider; public KeyguardPinBasedInputView(Context context) { this(context, null); @@ -152,7 +149,6 @@ public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView mDeleteButton = findViewById(R.id.delete_button); mDeleteButton.setVisibility(View.VISIBLE); - mDivider = findViewById(R.id.divider); mButtons[0] = findViewById(R.id.key0); mButtons[1] = findViewById(R.id.key1); @@ -181,12 +177,9 @@ public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView int deleteColor = Utils.getColorAttr(getContext(), android.R.attr.textColorSecondary) .getDefaultColor(); mDeleteButton.setImageTintList(ColorStateList.valueOf(deleteColor)); - mDivider.setBackground(getContext().getDrawable(R.drawable.pin_divider)); - ContextThemeWrapper themedContext = new ContextThemeWrapper(mContext, - R.style.Widget_TextView_NumPadKey); - mDeleteButton.setBackground(themedContext.getDrawable(R.drawable.ripple_drawable_pin)); - mOkButton.setBackground(themedContext.getDrawable(R.drawable.ripple_drawable_pin)); + mDeleteButton.reloadColors(); + mOkButton.reloadColors(); } @Override |