Merge "Revert fixing the style of Choose screen lock wasn’t consistent in initial setup and deferred setup" into udc-qpr-dev

This commit is contained in:
Bill Lin
2023-10-19 23:37:35 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 7 deletions

View File

@@ -121,7 +121,9 @@ public class SetNewPasswordActivity extends Activity implements SetNewPasswordCo
@Override @Override
public void launchChooseLock(Bundle chooseLockFingerprintExtras) { 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.setAction(mNewPasswordAction);
intent.putExtras(chooseLockFingerprintExtras); intent.putExtras(chooseLockFingerprintExtras);
if (mCallerAppName != null) { if (mCallerAppName != null) {

View File

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