|
|
|
@ -78,6 +78,7 @@ import org.mozilla.fenix.addons.AddonPermissionsDetailsFragmentDirections
|
|
|
|
|
import org.mozilla.fenix.browser.browsingmode.BrowsingMode
|
|
|
|
|
import org.mozilla.fenix.browser.browsingmode.BrowsingModeManager
|
|
|
|
|
import org.mozilla.fenix.browser.browsingmode.DefaultBrowsingModeManager
|
|
|
|
|
import org.mozilla.fenix.components.appstate.AppAction
|
|
|
|
|
import org.mozilla.fenix.components.metrics.BreadcrumbsRecorder
|
|
|
|
|
import org.mozilla.fenix.databinding.ActivityHomeBinding
|
|
|
|
|
import org.mozilla.fenix.exceptions.trackingprotection.TrackingProtectionExceptionsFragmentDirections
|
|
|
|
@ -370,6 +371,11 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|
|
|
|
Events.defaultBrowserChanged.record(NoExtras())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// We attempt to send metrics onResume so that the start of new user sessions is not
|
|
|
|
|
// missed. Previously, this was done in FenixApplication::onCreate, but it was decided
|
|
|
|
|
// that we should not rely on the application being killed between user sessions.
|
|
|
|
|
components.appStore.dispatch(AppAction.ResumedMetricsAction)
|
|
|
|
|
|
|
|
|
|
DefaultBrowserNotificationWorker.setDefaultBrowserNotificationIfNeeded(applicationContext)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|