added disabler of OnlineFormatter
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -21,10 +21,15 @@
|
||||
android:summary="@string/vtlofflinesummary"
|
||||
android:title="@string/vtloffline" />
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:defaultValue="false"
|
||||
android:key="setoffline"
|
||||
android:summary="@string/vtloffline2summary"
|
||||
android:title="@string/vtloffline2" />
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="onlineformatter"
|
||||
android:summary="Показывать статус пользователя с какого клиента сидит в онлайне"
|
||||
android:title="Расширенный онлайн" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/dnr">
|
||||
<Preference
|
||||
|
||||
Reference in New Issue
Block a user