Add Firebase Analytics for the loaded lucky number (#233)

This commit is contained in:
Kacper Ziubryniewicz 2019-02-05 18:18:49 +01:00 committed by Mikołaj Pich
parent 79093ca6f2
commit 2f87779647

View File

@ -45,7 +45,7 @@ class LuckyNumberPresenter @Inject constructor(
showContent(true) showContent(true)
showEmpty(false) showEmpty(false)
} }
analytics.logEvent("load_lucky_number", mapOf("force_refresh" to forceRefresh)) analytics.logEvent("load_lucky_number", mapOf("lucky_number" to it.luckyNumber, "force_refresh" to forceRefresh))
}, { }, {
view?.run { showEmpty(isViewEmpty()) } view?.run { showEmpty(isViewEmpty()) }
errorHandler.dispatch(it) errorHandler.dispatch(it)