Skip to content

Commit

Permalink
show locked notification content settings in SetupWizard
Browse files Browse the repository at this point in the history
  • Loading branch information
inthewaves committed Jan 28, 2025
1 parent 48a705a commit 932b760
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,17 @@ class ConfirmGeneratedLockPassFragment : BaseLockPasswordGenerationFragment(
passwordEntry?.setText("")

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

layout?.announceForAccessibility(getString(R.string.accessibility_setup_password_complete))
Expand Down

0 comments on commit 932b760

Please sign in to comment.