Skip to content

Commit

Permalink
Hard strict mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jun 6, 2024
1 parent f4efa91 commit d47cffb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exampleapp/src/main/java/org/matomo/demo/DemoApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ class DemoApp : MatomoApplication() {

override fun onCreate() {
super.onCreate()
StrictMode.setThreadPolicy(
ThreadPolicy.Builder()
.detectDiskReads()
.detectDiskWrites()
.detectNetwork()
.penaltyDialog()
.penaltyLog()
.build()
)
onInitTracker()
}

Expand Down

0 comments on commit d47cffb

Please sign in to comment.