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:
parent
6c26bea23f
commit
a1344f82c9
3 changed files with 54 additions and 101 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue