We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a65d70 commit 4f7ec8eCopy full SHA for 4f7ec8e
1 file changed
sample/src/main/java/info/hannes/logcat/CrashlyticApplication.kt
@@ -3,6 +3,7 @@ package info.hannes.logcat
3
import android.annotation.SuppressLint
4
import android.app.Application
5
import android.os.Handler
6
+import android.os.Looper
7
import android.provider.Settings
8
import com.google.firebase.crashlytics.FirebaseCrashlytics
9
import info.hannes.crashlytic.CrashlyticsTree
@@ -33,10 +34,10 @@ class CrashlyticApplication : Application() {
33
34
override fun run() {
35
Timber.d("live=$x")
36
x++
- Handler().postDelayed(this, 3000)
37
+ Handler(Looper.getMainLooper()).postDelayed(this, 3000)
38
}
39
40
- Handler().postDelayed(runner, 3000)
41
+ Handler(Looper.getMainLooper()).postDelayed(runner, 3000)
42
43
0 commit comments