[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:
Maurice Lam
2015-07-22 16:03:32 -07:00
parent 32b96646ee
commit 5f8d7dbe52
4 changed files with 16 additions and 4 deletions

View File

@@ -48,6 +48,12 @@ public class FingerprintEnrollBase extends Activity implements View.OnClickListe
*/
protected static final int RESULT_FINISHED = RESULT_FIRST_USER;
/**
* Used by the enrolling screen during setup wizard to skip over setting up fingerprint, which
* will be useful if the user accidentally entered this flow.
*/
protected static final int RESULT_SKIP = RESULT_FIRST_USER + 1;
protected byte[] mToken;
@Override