Skip to content

Commit

Permalink
No issue: correct position of StartupTimeline; add warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcomella committed Jul 20, 2020
1 parent 445593b commit fcb84d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/org/mozilla/fenix/HomeActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,15 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
webExtensionPopupFeature,
StartupTimeline.homeActivityLifecycleObserver
)
StartupTimeline.onActivityCreateEndHome(this)

if (shouldAddToRecentsScreen(intent)) {
intent.removeExtra(START_IN_RECENTS_SCREEN)
moveTaskToBack(true)
}

captureSnapshotTelemetryMetrics()

StartupTimeline.onActivityCreateEndHome(this) // DO NOT MOVE ANYTHING BELOW HERE.
}

@CallSuper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fcb84d9

Please sign in to comment.