Skip to content

Commit ed88cef

Browse files
committed
Hard strict mode detection
1 parent e118a11 commit ed88cef

File tree

1 file changed

+9
-0
lines changed
  • exampleapp/src/main/java/org/matomo/demo

1 file changed

+9
-0
lines changed

exampleapp/src/main/java/org/matomo/demo/DemoApp.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ class DemoApp : MatomoApplication() {
2323

2424
override fun onCreate() {
2525
super.onCreate()
26+
StrictMode.setThreadPolicy(
27+
ThreadPolicy.Builder()
28+
.detectDiskReads()
29+
.detectDiskWrites()
30+
.detectNetwork()
31+
.penaltyDialog()
32+
.penaltyLog()
33+
.build()
34+
)
2635
onInitTracker()
2736
}
2837

0 commit comments

Comments
 (0)