From 88f0939f045a4bc342d1cbf4430c5658f1ee8211 Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Sun, 17 Mar 2024 12:10:22 +0300 Subject: [PATCH] StrictMode corrections --- app/src/main/java/ru/vtosters/hooks/other/Preferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ru/vtosters/hooks/other/Preferences.java b/app/src/main/java/ru/vtosters/hooks/other/Preferences.java index 0bb68d992..bcbb03e5e 100644 --- a/app/src/main/java/ru/vtosters/hooks/other/Preferences.java +++ b/app/src/main/java/ru/vtosters/hooks/other/Preferences.java @@ -25,7 +25,7 @@ public class Preferences { public static void init(Application application) throws Exception { AppContextHolder.a = application.getApplicationContext(); - StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); + StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitNetwork().build(); StrictMode.setThreadPolicy(policy); // fix profiles hide hook MediaNative.init(application);