Merge "Fixed face enroll intro button issue" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
506c6b804f
@@ -203,11 +203,15 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
|
|||||||
getMoreButtonTextRes(), this::onNextButtonClick);
|
getMoreButtonTextRes(), this::onNextButtonClick);
|
||||||
requireScrollMixin.setOnRequireScrollStateChangedListener(
|
requireScrollMixin.setOnRequireScrollStateChangedListener(
|
||||||
scrollNeeded -> {
|
scrollNeeded -> {
|
||||||
|
|
||||||
|
boolean enrollmentCompleted = checkMaxEnrolled() != 0;
|
||||||
|
if (!enrollmentCompleted) {
|
||||||
// Update text of primary button from "More" to "Agree".
|
// Update text of primary button from "More" to "Agree".
|
||||||
final int primaryButtonTextRes = scrollNeeded
|
final int primaryButtonTextRes = scrollNeeded
|
||||||
? getMoreButtonTextRes()
|
? getMoreButtonTextRes()
|
||||||
: getAgreeButtonTextRes();
|
: getAgreeButtonTextRes();
|
||||||
getPrimaryFooterButton().setText(this, primaryButtonTextRes);
|
getPrimaryFooterButton().setText(this, primaryButtonTextRes);
|
||||||
|
}
|
||||||
|
|
||||||
// Show secondary button once scroll is completed.
|
// Show secondary button once scroll is completed.
|
||||||
if (!scrollNeeded) {
|
if (!scrollNeeded) {
|
||||||
|
Reference in New Issue
Block a user