Revert fixing the style of Choose screen lock wasn’t consistent

in initial setup and deferred setup

Bug: 301383804

Test: manually test with reproduciable steps in PO mode:
1. Set up offline and skip initial setup.
2. Navigate to home screen.
4. Connect to WiFi.
3. Sign in corp account during deferred setup.
5. Navigate to screen lock setup.
4. When landing on Choose screen lock, observe the behavior.

Change-Id: I5d9d1d30d280311875d8bd8604aed0fd0c08ab2c
This commit is contained in:
Jason Chang
2023-10-04 17:00:44 +00:00
parent 5bc1e9b38f
commit fdf80bd5c9
2 changed files with 3 additions and 7 deletions

View File

@@ -121,7 +121,9 @@ public class SetNewPasswordActivity extends Activity implements SetNewPasswordCo
@Override
public void launchChooseLock(Bundle chooseLockFingerprintExtras) {
Intent intent = new Intent(this, SetupChooseLockGeneric.class);
final boolean isInSetupWizard = WizardManagerHelper.isAnySetupWizard(getIntent());
Intent intent = isInSetupWizard ? new Intent(this, SetupChooseLockGeneric.class)
: new Intent(this, ChooseLockGeneric.class);
intent.setAction(mNewPasswordAction);
intent.putExtras(chooseLockFingerprintExtras);
if (mCallerAppName != null) {

View File

@@ -256,12 +256,6 @@ public class SetupChooseLockGeneric extends ChooseLockGeneric {
return InternalSetupChooseLockGenericFragment.class;
}
@Override
protected boolean isToolbarEnabled() {
// Hide the action bar from this page.
return false;
}
public static class InternalSetupChooseLockGenericFragment
extends ChooseLockGenericFragment {
@Override