[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:
@@ -130,19 +130,56 @@ public class SetupChooseLockGeneric extends ChooseLockGeneric
|
||||
|
||||
@Override
|
||||
protected Intent getLockPasswordIntent(Context context, int quality,
|
||||
int minLength, int maxLength, boolean requirePasswordToDecrypt,
|
||||
boolean confirmCredentials) {
|
||||
final Intent intent = SetupChooseLockPassword.createIntent(context, quality,
|
||||
minLength, maxLength, requirePasswordToDecrypt, confirmCredentials);
|
||||
int minLength, final int maxLength,
|
||||
boolean requirePasswordToDecrypt, boolean confirmCredentials) {
|
||||
final Intent intent = SetupChooseLockPassword.createIntent(context, quality, minLength,
|
||||
maxLength, requirePasswordToDecrypt, confirmCredentials);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Intent getLockPatternIntent(Context context,
|
||||
boolean requirePassword, boolean confirmCredentials) {
|
||||
final Intent intent = SetupChooseLockPattern.createIntent(context,
|
||||
requirePassword, confirmCredentials);
|
||||
protected Intent getLockPasswordIntent(Context context, int quality,
|
||||
int minLength, final int maxLength,
|
||||
boolean requirePasswordToDecrypt, long challenge) {
|
||||
final Intent intent = SetupChooseLockPassword.createIntent(context, quality, minLength,
|
||||
maxLength, requirePasswordToDecrypt, challenge);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Intent getLockPasswordIntent(Context context, int quality, int minLength,
|
||||
final int maxLength, boolean requirePasswordToDecrypt, String password) {
|
||||
final Intent intent = SetupChooseLockPassword.createIntent(context, quality, minLength,
|
||||
maxLength, requirePasswordToDecrypt, password);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Intent getLockPatternIntent(Context context, final boolean requirePassword,
|
||||
final boolean confirmCredentials) {
|
||||
final Intent intent = SetupChooseLockPattern.createIntent(context, requirePassword,
|
||||
confirmCredentials);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Intent getLockPatternIntent(Context context, final boolean requirePassword,
|
||||
long challenge) {
|
||||
final Intent intent = SetupChooseLockPattern.createIntent(context, requirePassword,
|
||||
challenge);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Intent getLockPatternIntent(Context context, final boolean requirePassword,
|
||||
final String pattern) {
|
||||
final Intent intent = SetupChooseLockPattern.createIntent(context, requirePassword,
|
||||
pattern);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
Reference in New Issue
Block a user