miniapps hide feature

This commit is contained in:
gdlbo
2022-07-14 19:27:53 +03:00
parent dd490abf69
commit 099de74ac1
4 changed files with 16 additions and 1 deletions
@@ -18,6 +18,7 @@ import static ru.vtosters.lite.utils.Globals.isGmsInstalled;
import static ru.vtosters.lite.utils.Globals.restartApplication;
import static ru.vtosters.lite.utils.IconManager.icons;
import static ru.vtosters.lite.utils.IconManager.iconsValues;
import static ru.vtosters.lite.utils.Preferences.*;
import static ru.vtosters.lite.utils.Preferences.DoNotUseOldIcons;
import static ru.vtosters.lite.utils.Preferences.ads;
import static ru.vtosters.lite.utils.Preferences.devmenu;
@@ -70,6 +71,7 @@ import ru.vtosters.lite.ui.vkui.VBottomSheetBuilder;
import ru.vtosters.lite.utils.CacheUtils;
import ru.vtosters.lite.utils.Globals;
import ru.vtosters.lite.utils.IconManager;
import ru.vtosters.lite.utils.Preferences;
import ru.vtosters.lite.utils.SSFS;
import ru.vtosters.lite.utils.VKUIwrapper;
@@ -369,7 +371,7 @@ public class VTSettings extends MaterialPreferenceToolbarFragment{
return false;
});
if (milkshake()) {
if (milkshake() && superapp()) {
PreferencesUtil.addPreference(this, "", "Настроить Superapp", superapp, "ic_explore_outline_28", (preference) -> {
callEditorPopup();
return true;
@@ -194,6 +194,10 @@ public class Preferences{
return getBoolValue("superapp", true);
}
public static boolean miniapps(){
return getBoolValue("miniapps", true);
}
public static boolean friendsblock(){
return getBoolValue("friendsblock", false);
}
+5
View File
@@ -35,6 +35,11 @@
android:title="Редизайн видеопостов" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/vtlother">
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="miniapps"
android:summary="Показывать Miniapps в меню"
android:title="Блок миниаппов" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="superapp"
@@ -1930,6 +1930,10 @@
move-result v0
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->miniapps()Z
move-result v0
return v0
.end method