Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Application: Stop setting custom thread policy
Browse files Browse the repository at this point in the history
Enabling warnings for disk reads and writes spams logcat thanks to SharedPreferences
running entirely on main thread so disable it entirely since we don't use
any patterns in Viscerion that would benefit from any StrictMode thread policy warnings.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
  • Loading branch information
msfjarvis committed Jul 21, 2019
1 parent bc297d7 commit 17cdc2d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/src/main/java/com/wireguard/android/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ class Application : android.app.Application() {

if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.build()
)
StrictMode.setVmPolicy(StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
Expand Down

0 comments on commit 17cdc2d

Please sign in to comment.