Merge "Set the negative button when configuration changes and dialog is restored" into qt-qpr1-dev
This commit is contained in:
@@ -499,6 +499,8 @@ public abstract class BiometricDialogView extends LinearLayout {
|
||||
if (newState == STATE_PENDING_CONFIRMATION || newState == STATE_AUTHENTICATED) {
|
||||
mNegativeButton.setText(R.string.cancel);
|
||||
mNegativeButton.setContentDescription(getResources().getString(R.string.cancel));
|
||||
} else {
|
||||
mNegativeButton.setText(mBundle.getCharSequence(BiometricPrompt.KEY_NEGATIVE_TEXT));
|
||||
}
|
||||
|
||||
updateIcon(mState, newState);
|
||||
|
||||
Reference in New Issue
Block a user