summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-03-02 21:38:00 +0530
committerGitHub <noreply@github.com>2022-03-02 21:38:00 +0530
commit47ec6059bd250d641c4111c2b57ac6d258e028d0 (patch)
tree60d2e3a4fb6ff77b0b7a7e44eef6277db3006db2 /app/src/main/java
parent980ebe44dae45888f934e22be85b07b387afe170 (diff)
app: turn off StrictMode (#1761)
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/dev/msfjarvis/aps/Application.kt5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/Application.kt b/app/src/main/java/dev/msfjarvis/aps/Application.kt
index 902d9b90..1a72655b 100644
--- a/app/src/main/java/dev/msfjarvis/aps/Application.kt
+++ b/app/src/main/java/dev/msfjarvis/aps/Application.kt
@@ -5,9 +5,6 @@
package dev.msfjarvis.aps
import android.content.SharedPreferences
-import android.os.StrictMode
-import android.os.StrictMode.ThreadPolicy
-import android.os.StrictMode.VmPolicy
import androidx.appcompat.app.AppCompatDelegate
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
@@ -44,8 +41,6 @@ class Application : android.app.Application(), SharedPreferences.OnSharedPrefere
prefs.getBoolean(PreferenceKeys.ENABLE_DEBUG_LOGGING, false)
) {
LogcatLogger.install(AndroidLogcatLogger(DEBUG))
- StrictMode.setVmPolicy(VmPolicy.Builder().detectAll().penaltyLog().build())
- StrictMode.setThreadPolicy(ThreadPolicy.Builder().detectAll().penaltyLog().build())
}
prefs.registerOnSharedPreferenceChangeListener(this)
setNightMode()