1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-03-14 00:11:40 +00:00

Convert CrashHandler to kotlin

This commit is contained in:
Ammar Githam 2021-07-11 21:35:17 +09:00
parent 6c26bea23f
commit a1344f82c9
3 changed files with 54 additions and 101 deletions

View file

@ -14,9 +14,9 @@ class CrashReporter private constructor(application: Application) : Thread.Uncau
fun start() {
if (startAttempted) return
startAttempted = true
defaultExceptionHandler = Thread.getDefaultUncaughtExceptionHandler()
Thread.setDefaultUncaughtExceptionHandler(this)
startAttempted = true
}
override fun uncaughtException(t: Thread, exception: Throwable) {