Fix follow system language setting (#1113)

This commit is contained in:
Rafał Borcz
2021-01-31 22:38:30 +01:00
committed by GitHub
parent 4984cb9b26
commit 82b207b03a
6 changed files with 45 additions and 24 deletions

View File

@ -20,7 +20,7 @@ class AnalyticsHelper @Inject constructor(
params.forEach {
if (it.second == null) return@forEach
when (it.second) {
is String, is String? -> putString(it.first, it.second as String)
is String, is String? -> putString(it.first, it.second.toString())
is Int, is Int? -> putInt(it.first, it.second as Int)
is Boolean, is Boolean? -> putBoolean(it.first, it.second as Boolean)
}