[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/5653: Removes crash with null campaign

pull/600/head
Sawyer Blatz 5 years ago
parent d182550fbc
commit 04db9191f2

@ -35,7 +35,9 @@ class AdjustMetricsService(private val application: Application) : MetricsServic
) )
config.setOnAttributionChangedListener { config.setOnAttributionChangedListener {
application.settings().adjustCampaignId = it.campaign it.campaign?.let { campaign ->
application.settings().adjustCampaignId = campaign
}
} }
config.setLogLevel(LogLevel.SUPRESS) config.setLogLevel(LogLevel.SUPRESS)

Loading…
Cancel
Save