Skip to content

Commit

Permalink
Remove redundant call to updateToolbarStateForTraitCollection
Browse files Browse the repository at this point in the history
Move telemetry in the telemetry tracking class
  • Loading branch information
lmarceau committed Jan 31, 2025
1 parent b94b674 commit 80598e2
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,6 @@ class BrowserViewController: UIViewController,
// in getting the value. When the delay happens the credit cards might not sync
// as the default value is false
self.profile.syncManager?.updateCreditCardAutofillStatus(value: autofillCreditCardStatus)

self.creditCardInitialSetupTelemetry()

FakespotUtils().addSettingTelemetry()
}
}

Expand All @@ -777,7 +773,7 @@ class BrowserViewController: UIViewController,

DispatchQueue.main.async {
self.overlayManager.setURLBar(urlBarView: self.urlBarView)
self.updateToolbarStateForTraitCollection(self.traitCollection)
// self.updateToolbarStateForTraitCollection(self.traitCollection)

// Update theme of already existing views
let theme = self.currentTheme()
Expand Down Expand Up @@ -4359,6 +4355,8 @@ extension BrowserViewController {
trackAccessibility()
trackNotificationPermission()
appStartupTelemetry.sendStartupTelemetry()
creditCardInitialSetupTelemetry()
FakespotUtils().addSettingTelemetry()
}

func trackAccessibility() {
Expand Down

0 comments on commit 80598e2

Please sign in to comment.