Skip to content

Commit 4603830

Browse files
committed
Hard strict mode detection
1 parent 013e18e commit 4603830

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
@@ -25,6 +25,15 @@ class DemoApp : MatomoApplication() {
2525

2626
override fun onCreate() {
2727
super.onCreate()
28+
StrictMode.setThreadPolicy(
29+
ThreadPolicy.Builder()
30+
.detectDiskReads()
31+
.detectDiskWrites()
32+
.detectNetwork()
33+
.penaltyDialog()
34+
.penaltyLog()
35+
.build()
36+
)
2837
onInitTracker()
2938
}
3039

0 commit comments

Comments
 (0)