Set the negative button when configuration changes and dialog is restored

Fixes: 140607595

Test: manual, rotate the device
Change-Id: I9c9c0b9640735404d66c901011c39f28caa540da
This commit is contained in:
Kevin Chyn
2019-10-10 11:48:16 -07:00
parent 9ed11c9dea
commit 050e5a64b7

View File

@@ -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);