Merge "Show "Done" button to prevent user from getting stuck"
This commit is contained in:
committed by
Android (Google) Code Review
commit
1c9fc3e9eb
@@ -150,7 +150,8 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
|
|||||||
getNextButton().setVisibility(View.VISIBLE);
|
getNextButton().setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
mErrorText.setText(errorMsg);
|
mErrorText.setText(errorMsg);
|
||||||
getNextButton().setVisibility(View.GONE);
|
getNextButton().setText(getResources().getString(R.string.done));
|
||||||
|
getNextButton().setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,8 +163,13 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onNextButtonClick(View view) {
|
protected void onNextButtonClick(View view) {
|
||||||
// Lock thingy is already set up, launch directly to the next page
|
if (checkMaxEnrolled() == 0) {
|
||||||
launchNextEnrollingActivity(mToken);
|
// Lock thingy is already set up, launch directly to the next page
|
||||||
|
launchNextEnrollingActivity(mToken);
|
||||||
|
} else {
|
||||||
|
setResult(RESULT_FINISHED);
|
||||||
|
finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void launchChooseLock() {
|
private void launchChooseLock() {
|
||||||
|
Reference in New Issue
Block a user