Show confirmation dialog when user tries to skip fingerprint

- After the user finished adding lock screen, if the user tries to skip
fingerprint setup, show a confirmation dialog

bug: 64092225
Test: Manually tested; robolectric tests also added
Change-Id: Iba5088a9db93153988942cf78f11077f427e50cb
This commit is contained in:
Ajay Nadathur
2017-07-31 17:18:56 -07:00
parent 882d35715e
commit bf3a135170
6 changed files with 262 additions and 2 deletions

View File

@@ -61,6 +61,7 @@ public class SetupSkipDialog extends InstrumentedDialogFragment
return new AlertDialog.Builder(getContext())
.setPositiveButton(R.string.skip_anyway_button_label, this)
.setNegativeButton(R.string.go_back_button_label, this)
.setTitle(R.string.lock_screen_intro_skip_title)
.setMessage(args.getBoolean(ARG_FRP_SUPPORTED) ?
R.string.lock_screen_intro_skip_dialog_text_frp :
R.string.lock_screen_intro_skip_dialog_text);