Merge "Fix fingerprint dialog color contrast for dark theme" into rvc-qpr-dev am: e8ee10d299
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13370435 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I032d9e0661952ef8938cb7d2de6dccc520d62ee2
This commit is contained in:
@@ -160,12 +160,12 @@ public class AuthBiometricFaceView extends AuthBiometricView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleResetAfterError() {
|
protected void handleResetAfterError() {
|
||||||
resetErrorView(mContext, mIndicatorView);
|
resetErrorView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleResetAfterHelp() {
|
protected void handleResetAfterHelp() {
|
||||||
resetErrorView(mContext, mIndicatorView);
|
resetErrorView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -185,7 +185,7 @@ public class AuthBiometricFaceView extends AuthBiometricView {
|
|||||||
|
|
||||||
if (newState == STATE_AUTHENTICATING_ANIMATING_IN ||
|
if (newState == STATE_AUTHENTICATING_ANIMATING_IN ||
|
||||||
(newState == STATE_AUTHENTICATING && mSize == AuthDialog.SIZE_MEDIUM)) {
|
(newState == STATE_AUTHENTICATING && mSize == AuthDialog.SIZE_MEDIUM)) {
|
||||||
resetErrorView(mContext, mIndicatorView);
|
resetErrorView();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do this last since the state variable gets updated.
|
// Do this last since the state variable gets updated.
|
||||||
@@ -204,9 +204,8 @@ public class AuthBiometricFaceView extends AuthBiometricView {
|
|||||||
super.onAuthenticationFailed(failureReason);
|
super.onAuthenticationFailed(failureReason);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void resetErrorView(Context context, TextView textView) {
|
private void resetErrorView() {
|
||||||
textView.setTextColor(context.getResources().getColor(
|
mIndicatorView.setTextColor(mTextColorHint);
|
||||||
R.color.biometric_dialog_gray, context.getTheme()));
|
mIndicatorView.setVisibility(View.INVISIBLE);
|
||||||
textView.setVisibility(View.INVISIBLE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class AuthBiometricFingerprintView extends AuthBiometricView {
|
|||||||
|
|
||||||
private void showTouchSensorString() {
|
private void showTouchSensorString() {
|
||||||
mIndicatorView.setText(R.string.fingerprint_dialog_touch_sensor);
|
mIndicatorView.setText(R.string.fingerprint_dialog_touch_sensor);
|
||||||
mIndicatorView.setTextColor(R.color.biometric_dialog_gray);
|
mIndicatorView.setTextColor(mTextColorHint);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateIcon(int lastState, int newState) {
|
private void updateIcon(int lastState, int newState) {
|
||||||
|
|||||||
@@ -155,8 +155,8 @@ public abstract class AuthBiometricView extends LinearLayout {
|
|||||||
private final Injector mInjector;
|
private final Injector mInjector;
|
||||||
private final Handler mHandler;
|
private final Handler mHandler;
|
||||||
private final AccessibilityManager mAccessibilityManager;
|
private final AccessibilityManager mAccessibilityManager;
|
||||||
private final int mTextColorError;
|
protected final int mTextColorError;
|
||||||
private final int mTextColorHint;
|
protected final int mTextColorHint;
|
||||||
|
|
||||||
private AuthPanelController mPanelController;
|
private AuthPanelController mPanelController;
|
||||||
private Bundle mBiometricPromptBundle;
|
private Bundle mBiometricPromptBundle;
|
||||||
@@ -169,7 +169,7 @@ public abstract class AuthBiometricView extends LinearLayout {
|
|||||||
private TextView mSubtitleView;
|
private TextView mSubtitleView;
|
||||||
private TextView mDescriptionView;
|
private TextView mDescriptionView;
|
||||||
protected ImageView mIconView;
|
protected ImageView mIconView;
|
||||||
@VisibleForTesting protected TextView mIndicatorView;
|
protected TextView mIndicatorView;
|
||||||
@VisibleForTesting Button mNegativeButton;
|
@VisibleForTesting Button mNegativeButton;
|
||||||
@VisibleForTesting Button mPositiveButton;
|
@VisibleForTesting Button mPositiveButton;
|
||||||
@VisibleForTesting Button mTryAgainButton;
|
@VisibleForTesting Button mTryAgainButton;
|
||||||
|
|||||||
Reference in New Issue
Block a user