[Fingerprint] Show skip button during SUW
Show a skip button during enrolling in case the user entered the flow accidentally. The skip button will send the result code RESULT_SKIP, which is equal to RESULT_FIRST_USER + 1, back to the starting activity. Bug: 22666389 Change-Id: I230b04e5150214c31536ac282d56b7b490c85ac1
This commit is contained in:
@@ -52,8 +52,7 @@ public class SetupFingerprintEnrollEnrolling extends FingerprintEnrollEnrolling
|
||||
|
||||
final NavigationBar navigationBar = getNavigationBar();
|
||||
navigationBar.setNavigationBarListener(this);
|
||||
// Enrolling screen auto-advances once the fingerprint is added
|
||||
navigationBar.getNextButton().setEnabled(false);
|
||||
navigationBar.getNextButton().setText(R.string.skip_label);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -68,6 +67,7 @@ public class SetupFingerprintEnrollEnrolling extends FingerprintEnrollEnrolling
|
||||
|
||||
@Override
|
||||
public void onNavigateNext() {
|
||||
onNextButtonClick();
|
||||
setResult(RESULT_SKIP);
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user