Skip to content

Commit

Permalink
Bugfix FXIOS-11237-11238 Regression on settings change (mozilla-mobil…
Browse files Browse the repository at this point in the history
…e#24463)

With boolean
  • Loading branch information
lmarceau authored and aya-en-amir committed Feb 5, 2025
1 parent a270a18 commit f3dee03
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class AppSettingsTableViewController: SettingsTableViewController,
private var applicationHelper: ApplicationHelper
private let logger: Logger
private let gleanUsageReportingMetricsService: GleanUsageReportingMetricsService
private var hasAppearedBefore = false

weak var parentCoordinator: SettingsFlowDelegate?

Expand Down Expand Up @@ -97,10 +98,15 @@ class AppSettingsTableViewController: SettingsTableViewController,
configureAccessibilityIdentifiers()
}

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

askedToReload()
if hasAppearedBefore {
// Only reload if we're returning from a child view
askedToReload()
}

hasAppearedBefore = true
}

// MARK: - Actions
Expand Down

0 comments on commit f3dee03

Please sign in to comment.