added disabler of OnlineFormatter

This commit is contained in:
gdlbo
2022-07-16 23:02:38 +03:00
parent 673d5fe16c
commit 2e2be2fe4a
3 changed files with 9 additions and 3 deletions
@@ -4,6 +4,7 @@ import static ru.vtosters.lite.utils.Globals.getString;
import static ru.vtosters.lite.utils.Globals.getUserToken;
import static ru.vtosters.lite.utils.Globals.sendToast;
import static ru.vtosters.lite.utils.Preferences.dev;
import static ru.vtosters.lite.utils.Preferences.getBoolValue;
import static ru.vtosters.lite.utils.Preferences.getPrefsFromFile;
import static ru.vtosters.lite.utils.Proxy.getApi;
@@ -15,7 +16,7 @@ public class OnlineFormatterHook{
private static String AppName;
public static String getAppName(int appid){ // thanks to egormetlitsky (vk mp3 mod) for helping with online ids
if (appid <= 3) return null;
if (appid <= 3 || !getBoolValue("onlineformatter", true)) return null;
switch(appid) {
case 2274003:
@@ -251,7 +251,7 @@ public class Preferences{
}
public static boolean setoffline(){
return getBoolValue("setoffline", true);
return getBoolValue("setoffline", false);
}
public static boolean shortinfo(){