|
|
@ -95,6 +95,7 @@ import org.mozilla.fenix.library.bookmarks.DesktopFolders
|
|
|
|
import org.mozilla.fenix.library.history.HistoryFragmentDirections
|
|
|
|
import org.mozilla.fenix.library.history.HistoryFragmentDirections
|
|
|
|
import org.mozilla.fenix.library.recentlyclosed.RecentlyClosedFragmentDirections
|
|
|
|
import org.mozilla.fenix.library.recentlyclosed.RecentlyClosedFragmentDirections
|
|
|
|
import org.mozilla.fenix.onboarding.DefaultBrowserNotificationWorker
|
|
|
|
import org.mozilla.fenix.onboarding.DefaultBrowserNotificationWorker
|
|
|
|
|
|
|
|
import org.mozilla.fenix.perf.MarkersLifecycleCallbacks
|
|
|
|
import org.mozilla.fenix.perf.Performance
|
|
|
|
import org.mozilla.fenix.perf.Performance
|
|
|
|
import org.mozilla.fenix.perf.PerformanceInflater
|
|
|
|
import org.mozilla.fenix.perf.PerformanceInflater
|
|
|
|
import org.mozilla.fenix.perf.ProfilerMarkers
|
|
|
|
import org.mozilla.fenix.perf.ProfilerMarkers
|
|
|
@ -179,6 +180,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|
|
|
private lateinit var startupTypeTelemetry: StartupTypeTelemetry
|
|
|
|
private lateinit var startupTypeTelemetry: StartupTypeTelemetry
|
|
|
|
|
|
|
|
|
|
|
|
final override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
|
final override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
|
|
|
|
|
// DO NOT MOVE ANYTHING ABOVE THIS getProfilerTime CALL.
|
|
|
|
|
|
|
|
val startTimeProfiler = components.core.engine.profiler?.getProfilerTime()
|
|
|
|
|
|
|
|
|
|
|
|
components.strictMode.attachListenerToDisablePenaltyDeath(supportFragmentManager)
|
|
|
|
components.strictMode.attachListenerToDisablePenaltyDeath(supportFragmentManager)
|
|
|
|
// There is disk read violations on some devices such as samsung and pixel for android 9/10
|
|
|
|
// There is disk read violations on some devices such as samsung and pixel for android 9/10
|
|
|
|
components.strictMode.resetAfter(StrictMode.allowThreadDiskReads()) {
|
|
|
|
components.strictMode.resetAfter(StrictMode.allowThreadDiskReads()) {
|
|
|
@ -266,6 +270,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|
|
|
components.core.pocketStoriesService.startPeriodicStoriesRefresh()
|
|
|
|
components.core.pocketStoriesService.startPeriodicStoriesRefresh()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
components.core.engine.profiler?.addMarker(
|
|
|
|
|
|
|
|
MarkersLifecycleCallbacks.MARKER_NAME, startTimeProfiler, "HomeActivity.onCreate"
|
|
|
|
|
|
|
|
)
|
|
|
|
StartupTimeline.onActivityCreateEndHome(this) // DO NOT MOVE ANYTHING BELOW HERE.
|
|
|
|
StartupTimeline.onActivityCreateEndHome(this) // DO NOT MOVE ANYTHING BELOW HERE.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -316,6 +323,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun onStart() {
|
|
|
|
override fun onStart() {
|
|
|
|
|
|
|
|
// DO NOT MOVE ANYTHING ABOVE THIS getProfilerTime CALL.
|
|
|
|
|
|
|
|
val startProfilerTime = components.core.engine.profiler?.getProfilerTime()
|
|
|
|
|
|
|
|
|
|
|
|
super.onStart()
|
|
|
|
super.onStart()
|
|
|
|
|
|
|
|
|
|
|
|
// Diagnostic breadcrumb for "Display already aquired" crash:
|
|
|
|
// Diagnostic breadcrumb for "Display already aquired" crash:
|
|
|
@ -325,6 +335,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
ProfilerMarkers.homeActivityOnStart(binding.rootContainer, components.core.engine.profiler)
|
|
|
|
ProfilerMarkers.homeActivityOnStart(binding.rootContainer, components.core.engine.profiler)
|
|
|
|
|
|
|
|
components.core.engine.profiler?.addMarker(
|
|
|
|
|
|
|
|
MarkersLifecycleCallbacks.MARKER_NAME, startProfilerTime, "HomeActivity.onStart"
|
|
|
|
|
|
|
|
) // DO NOT MOVE ANYTHING BELOW THIS addMarker CALL.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun onStop() {
|
|
|
|
override fun onStop() {
|
|
|
|