From e8753831b6c678993750b15124e9ea5ae34ec582 Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Mon, 27 Jun 2022 18:40:11 +0300 Subject: [PATCH] ServerDialog disabler --- app/src/main/java/com/vtosters/lite/R.java | 2 +- app/src/main/java/ru/vtosters/lite/utils/ServerDialog.java | 2 ++ smali/res/values-ru/strings.xml | 2 +- smali/res/values/strings.xml | 4 ++-- smali/res/xml/preferences_other.xml | 4 ++++ 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/vtosters/lite/R.java b/app/src/main/java/com/vtosters/lite/R.java index 6b2e3b487..c730c6e62 100644 --- a/app/src/main/java/com/vtosters/lite/R.java +++ b/app/src/main/java/com/vtosters/lite/R.java @@ -26722,7 +26722,7 @@ public final class R{ public static final int reportbugsumm = 0x7f12159f; - public static final int donaterecomm = 0x7f1215a7; + public static final int dialogrecomm = 0x7f1215a7; public static final int officialnewssett = 0x7f1215e4; diff --git a/app/src/main/java/ru/vtosters/lite/utils/ServerDialog.java b/app/src/main/java/ru/vtosters/lite/utils/ServerDialog.java index a296d929c..60fd7d850 100644 --- a/app/src/main/java/ru/vtosters/lite/utils/ServerDialog.java +++ b/app/src/main/java/ru/vtosters/lite/utils/ServerDialog.java @@ -37,6 +37,8 @@ public class ServerDialog{ public static Activity activity; public static void sendRequest(){ + if(getBoolValue("dialogrecomm", false)) return; + Request request = new Request.a() .b("https://vtosters.app/dialog.json") .a(); diff --git a/smali/res/values-ru/strings.xml b/smali/res/values-ru/strings.xml index f7c215bb1..2ea3174bf 100644 --- a/smali/res/values-ru/strings.xml +++ b/smali/res/values-ru/strings.xml @@ -5500,7 +5500,7 @@ Фильтр очистки постов с РФ и действиями связанными на Украине Показывать истории Блок истории в верхней части ленты - Отключить рекомендации о донате + Отключить рекомендации Показывать специальные верификации Показывать верификации Тип подключения diff --git a/smali/res/values/strings.xml b/smali/res/values/strings.xml index 384413195..0fbac7b30 100644 --- a/smali/res/values/strings.xml +++ b/smali/res/values/strings.xml @@ -1688,7 +1688,7 @@ less often." Check your internet connection and try again Stream paused Profile - Рекомендации + Recommendations Resume Retry Send gift @@ -5652,7 +5652,7 @@ You need to restart the application to apply proxy settings" Filter for cleaning posts with the Russian Federation and actions related in Ukraine Show stories The story section at the top of the feed - Disable recommendations about donation + Disable recommendations Show special verifications Show verifications Connection type diff --git a/smali/res/xml/preferences_other.xml b/smali/res/xml/preferences_other.xml index 2628d59da..9abb685ff 100644 --- a/smali/res/xml/preferences_other.xml +++ b/smali/res/xml/preferences_other.xml @@ -65,5 +65,9 @@ android:defaultValue="true" android:key="VT_Fire" android:title="@string/showvtfire" /> + \ No newline at end of file