From fcb84d940a096b37bd5ddd8756ab62ea0963321e Mon Sep 17 00:00:00 2001 From: Michael Comella Date: Wed, 8 Jul 2020 16:39:07 -0700 Subject: [PATCH] No issue: correct position of StartupTimeline; add warning. --- app/src/main/java/org/mozilla/fenix/HomeActivity.kt | 3 ++- app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/HomeActivity.kt b/app/src/main/java/org/mozilla/fenix/HomeActivity.kt index db012a8764..dcbc6e51cd 100644 --- a/app/src/main/java/org/mozilla/fenix/HomeActivity.kt +++ b/app/src/main/java/org/mozilla/fenix/HomeActivity.kt @@ -207,7 +207,6 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { webExtensionPopupFeature, StartupTimeline.homeActivityLifecycleObserver ) - StartupTimeline.onActivityCreateEndHome(this) if (shouldAddToRecentsScreen(intent)) { intent.removeExtra(START_IN_RECENTS_SCREEN) @@ -215,6 +214,8 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { } captureSnapshotTelemetryMetrics() + + StartupTimeline.onActivityCreateEndHome(this) // DO NOT MOVE ANYTHING BELOW HERE. } @CallSuper diff --git a/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt b/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt index 033a4827e3..22d30e2f93 100644 --- a/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt +++ b/app/src/main/java/org/mozilla/fenix/IntentReceiverActivity.kt @@ -38,7 +38,7 @@ class IntentReceiverActivity : Activity() { intent.stripUnwantedFlags() processIntent(intent) - StartupTimeline.onActivityCreateEndIntentReceiver() + StartupTimeline.onActivityCreateEndIntentReceiver() // DO NOT MOVE ANYTHING BELOW HERE. } fun processIntent(intent: Intent) {