For #973 - Adds first metric to track
parent
644e88dacb
commit
044e8fd7fa
|
@ -23,6 +23,7 @@ import mozilla.components.support.base.feature.BackHandler
|
|||
import mozilla.components.support.ktx.kotlin.isUrl
|
||||
import mozilla.components.support.ktx.kotlin.toNormalizedUrl
|
||||
import mozilla.components.support.utils.SafeIntent
|
||||
import org.mozilla.fenix.components.metrics.Event
|
||||
import org.mozilla.fenix.ext.components
|
||||
import org.mozilla.fenix.home.HomeFragmentDirections
|
||||
import org.mozilla.fenix.search.SearchFragmentDirections
|
||||
|
@ -59,6 +60,11 @@ open class HomeActivity : AppCompatActivity() {
|
|||
handleOpenedFromExternalSourceIfNecessary(intent)
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
components.analytics.metrics.track(Event.OpenedApp)
|
||||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent?) {
|
||||
super.onNewIntent(intent)
|
||||
handleOpenedFromExternalSourceIfNecessary(intent)
|
||||
|
|
Loading…
Reference in New Issue