Adds locale logs to better identify a crash

hh
Laurent 6 years ago
parent 943f05126d
commit e244158db4
  1. 4
      app/src/main/java/net/pokeranalytics/android/PokerAnalyticsApplication.kt

@ -20,6 +20,7 @@ import net.pokeranalytics.android.util.PokerAnalyticsLogs
import net.pokeranalytics.android.util.UserDefaults import net.pokeranalytics.android.util.UserDefaults
import net.pokeranalytics.android.util.billing.AppGuard import net.pokeranalytics.android.util.billing.AppGuard
import timber.log.Timber import timber.log.Timber
import java.util.*
class PokerAnalyticsApplication : Application() { class PokerAnalyticsApplication : Application() {
@ -80,6 +81,9 @@ class PokerAnalyticsApplication : Application() {
Patcher.patchAll(this.applicationContext) Patcher.patchAll(this.applicationContext)
val locale = Locale.getDefault()
Crashlytics.log("Country: ${locale.country}, language: ${locale.language}")
} }
/** /**

Loading…
Cancel
Save