[LockScreenSetup] Start SUW-style screens in setup flow
Implement the new overloaded methods in the setup-specific screens so that the SUW-styled screens will be started instead of the regular ones as seen in Settings. Bug: 20304053 Change-Id: I68e778e6421cfe08e20c9b4af9ed98e0f5ebcee1
This commit is contained in:
@@ -38,14 +38,26 @@ import android.widget.Button;
|
||||
public class SetupChooseLockPattern extends ChooseLockPattern
|
||||
implements SetupWizardNavBar.NavigationBarListener {
|
||||
|
||||
public static Intent createIntent(Context context,
|
||||
boolean requirePassword, boolean confirmCredentials) {
|
||||
public static Intent createIntent(Context context, boolean requirePassword,
|
||||
boolean confirmCredentials) {
|
||||
Intent intent = ChooseLockPattern.createIntent(context, requirePassword,
|
||||
confirmCredentials);
|
||||
intent.setClass(context, SetupChooseLockPattern.class);
|
||||
return intent;
|
||||
}
|
||||
|
||||
public static Intent createIntent(Context context, boolean requirePassword, String pattern) {
|
||||
Intent intent = ChooseLockPattern.createIntent(context, requirePassword, pattern);
|
||||
intent.setClass(context, SetupChooseLockPattern.class);
|
||||
return intent;
|
||||
}
|
||||
|
||||
public static Intent createIntent(Context context, boolean requirePassword, long challenge) {
|
||||
Intent intent = ChooseLockPattern.createIntent(context, requirePassword, challenge);
|
||||
intent.setClass(context, SetupChooseLockPattern.class);
|
||||
return intent;
|
||||
}
|
||||
|
||||
private SetupWizardNavBar mNavigationBar;
|
||||
private SetupChooseLockPatternFragment mFragment;
|
||||
|
||||
|
Reference in New Issue
Block a user