Skip to content

Commit 932b760

Browse files
committed
show locked notification content settings in SetupWizard
1 parent 48a705a commit 932b760

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/com/android/settings/password/generate/ConfirmGeneratedLockPassFragment.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,17 @@ class ConfirmGeneratedLockPassFragment : BaseLockPasswordGenerationFragment(
9494
passwordEntry?.setText("")
9595

9696
if (!wasSecureBefore) {
97-
if (WizardManagerHelper.isAnySetupWizard(activity!!.intent)) {
97+
//if (WizardManagerHelper.isAnySetupWizard(activity!!.intent)) {
9898
// Setup wizard's redaction interstitial is deferred to optional step. Enable that
9999
// optional step if the lock screen was set up.
100-
SetupRedactionInterstitial.setEnabled(context, true)
101-
} else {
102-
startActivity(RedactionInterstitial.createStartIntent(activity, mUserId))
103-
}
100+
// SetupRedactionInterstitial.setEnabled(context, true)
101+
//} else {
102+
// Always show lock screen notification RedactionInterstitial, even if in SetupWizard.
103+
// Current SetupWizard2 doesn't call the optional component
104+
// If we use the Settings app's LOCK_SCREEN_REDACTION intent inside of SetupWizard, can
105+
// uncomment this check
106+
startActivity(RedactionInterstitial.createStartIntent(activity, mUserId))
107+
// }
104108
}
105109

106110
layout?.announceForAccessibility(getString(R.string.accessibility_setup_password_complete))

0 commit comments

Comments
 (0)