diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoXConfig.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoXConfig.java
index 58259e2586..cda6dbbfde 100644
--- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoXConfig.java
+++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoXConfig.java
@@ -27,6 +27,7 @@
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.StrUtil;
import tw.nekomimi.nekogram.database.NitritesKt;
+import xyz.nextalone.nagram.NaConfig;
public class NekoXConfig {
@@ -66,7 +67,7 @@ public class NekoXConfig {
public static boolean developerMode = preferences.getBoolean("developer_mode", true);
- public static boolean disableFlagSecure = preferences.getBoolean("disable_flag_secure", true);
+ public static boolean disableFlagSecure = NaConfig.INSTANCE.getDisableFlagSecure().Bool();
public static boolean disableScreenshotDetection = preferences.getBoolean("disable_screenshot_detection", false);
public static boolean disableStatusUpdate = preferences.getBoolean("disable_status_update", false);
@@ -92,7 +93,10 @@ public static void toggleDeveloperMode() {
}
public static void toggleDisableFlagSecure() {
- preferences.edit().putBoolean("disable_flag_secure", disableFlagSecure = !disableFlagSecure).apply();
+// preferences.edit().putBoolean("disable_flag_secure", disableFlagSecure = !disableFlagSecure).apply();
+
+ disableFlagSecure = !disableFlagSecure;
+ NaConfig.INSTANCE.getDisableFlagSecure().toggleConfigBool();
}
public static void toggleDisableScreenshotDetection() {
diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java
index 40c66c75c6..c34065ef2c 100644
--- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java
+++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java
@@ -94,6 +94,7 @@ public class NekoExperimentalSettingsActivity extends BaseNekoXSettingsActivity
private final AbstractConfigCell header2 = cellGroup.appendCell(new ConfigCellHeader(LocaleController.getString("N_Config")));
private final AbstractConfigCell forceCopyRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getForceCopy()));
+ private final AbstractConfigCell disableFlagSecureRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getDisableFlagSecure()));
private final AbstractConfigCell audioEnhanceRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getNoiseSuppressAndVoiceEnhance()));
private final AbstractConfigCell showRPCErrorRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getShowRPCError()));
private final AbstractConfigCell customArtworkApiRow = cellGroup.appendCell(new ConfigCellTextInput(null, NaConfig.INSTANCE.getCustomArtworkApi(), "", null));
diff --git a/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt b/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt
index eacb81cb36..ce4114a7f4 100644
--- a/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt
+++ b/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt
@@ -530,6 +530,12 @@ object NaConfig {
ConfigItem.configTypeBool,
false
)
+ val disableFlagSecure =
+ addConfig(
+ "DisableFlagSecure",
+ ConfigItem.configTypeBool,
+ true
+ )
private fun addConfig(
k: String,
diff --git a/TMessagesProj/src/main/res/values-ar-rSA/strings_na.xml b/TMessagesProj/src/main/res/values-ar-rSA/strings_na.xml
index 9dc70e1142..a3ca795b6d 100644
--- a/TMessagesProj/src/main/res/values-ar-rSA/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-ar-rSA/strings_na.xml
@@ -123,4 +123,5 @@
تعطيل نص أمر النقر لإرساله
لمنع اللمس العرضي
تعطيل مربعات الحوار الزر العائم
+ تعطيل العلم الآمن
diff --git a/TMessagesProj/src/main/res/values-cs-rCZ/strings_na.xml b/TMessagesProj/src/main/res/values-cs-rCZ/strings_na.xml
index fae24ad83f..b9bae1b36e 100644
--- a/TMessagesProj/src/main/res/values-cs-rCZ/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-cs-rCZ/strings_na.xml
@@ -123,4 +123,5 @@
Zakázat kliknutí na text příkazu pro odeslání
Aby se zabránilo náhodnému dotyku
Zakázat plovoucí tlačítko dialogů
+ Zakázat zabezpečení vlajky
diff --git a/TMessagesProj/src/main/res/values-da-rDK/strings_na.xml b/TMessagesProj/src/main/res/values-da-rDK/strings_na.xml
index 525646d95c..d0ed2554b3 100644
--- a/TMessagesProj/src/main/res/values-da-rDK/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-da-rDK/strings_na.xml
@@ -123,4 +123,5 @@
Deaktivér klikkommandotekst for at sende
For at forhindre utilsigtet berøring
Deaktivér Dialoger Flydende Knap
+ Deaktivér Flag Sikker
diff --git a/TMessagesProj/src/main/res/values-de-rDE/strings_na.xml b/TMessagesProj/src/main/res/values-de-rDE/strings_na.xml
index 097fba9f71..0ac45c46db 100644
--- a/TMessagesProj/src/main/res/values-de-rDE/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-de-rDE/strings_na.xml
@@ -123,4 +123,5 @@
Deaktiviere Befehlstext zum Senden
Um zufällige Berührung zu verhindern
Schwebende Dialoge deaktivieren
+ Sichere Flagge deaktivieren
diff --git a/TMessagesProj/src/main/res/values-el-rGR/strings_na.xml b/TMessagesProj/src/main/res/values-el-rGR/strings_na.xml
index 5154b645d9..020afa1ae6 100644
--- a/TMessagesProj/src/main/res/values-el-rGR/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-el-rGR/strings_na.xml
@@ -123,4 +123,5 @@
Απενεργοποιήστε το κλικ στην εντολή κειμένου για αποστολή
Για την πρόληψη ακούσιας αφής
Απενεργοποίηση Πλωτού Κουμπιού Dialogs
+ Απενεργοποίηση Flag Secure
diff --git a/TMessagesProj/src/main/res/values-es-rES/strings_na.xml b/TMessagesProj/src/main/res/values-es-rES/strings_na.xml
index e2ad772444..4edbca4aec 100644
--- a/TMessagesProj/src/main/res/values-es-rES/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-es-rES/strings_na.xml
@@ -123,4 +123,5 @@
Deshabilitar comando de clic para enviar
Para prevenir toques accidentales
Desactivar el botón flotante de diálogos
+ Desactivar Bandera Segura
diff --git a/TMessagesProj/src/main/res/values-fi-rFI/strings_na.xml b/TMessagesProj/src/main/res/values-fi-rFI/strings_na.xml
index f77d754c91..a0d9fdd6fd 100644
--- a/TMessagesProj/src/main/res/values-fi-rFI/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-fi-rFI/strings_na.xml
@@ -123,4 +123,5 @@
Poista komennon teksti käytöstä lähettääksesi
Estä vahingossa kosketus
Poista Dialogien Kelluva Painike Käytöstä
+ Poista Lipun Turvallisuus Käytöstä
diff --git a/TMessagesProj/src/main/res/values-fr-rFR/strings_na.xml b/TMessagesProj/src/main/res/values-fr-rFR/strings_na.xml
index 2650d2df1d..8afc568a1f 100644
--- a/TMessagesProj/src/main/res/values-fr-rFR/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-fr-rFR/strings_na.xml
@@ -123,4 +123,5 @@
Désactiver le texte de la commande pour envoyer
Pour éviter un toucher accidentel
Désactiver le bouton flottant des boîtes de dialogue
+ Désactiver Flag Secure
diff --git a/TMessagesProj/src/main/res/values-it-rIT/strings_na.xml b/TMessagesProj/src/main/res/values-it-rIT/strings_na.xml
index 09d32c3608..52342c17b8 100644
--- a/TMessagesProj/src/main/res/values-it-rIT/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-it-rIT/strings_na.xml
@@ -123,4 +123,5 @@
Disabilita il clic sul testo del comando da inviare
Per evitare tocchi accidentali
Disabilita Le Finestre Pulsante Fluttuante
+ Disabilita Flag Secure
diff --git a/TMessagesProj/src/main/res/values-ja-rJP/strings_na.xml b/TMessagesProj/src/main/res/values-ja-rJP/strings_na.xml
index c2a153eb1a..8e3c3f200a 100644
--- a/TMessagesProj/src/main/res/values-ja-rJP/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-ja-rJP/strings_na.xml
@@ -123,4 +123,5 @@
送信するコマンドテキストをクリックしない
偶発的なタッチを防ぐため
ダイアログのフローティングボタンを無効化
+ 安全フラグを無効にする
diff --git a/TMessagesProj/src/main/res/values-nl-rNL/strings_na.xml b/TMessagesProj/src/main/res/values-nl-rNL/strings_na.xml
index e8811cf3f3..ea5944ec1e 100644
--- a/TMessagesProj/src/main/res/values-nl-rNL/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-nl-rNL/strings_na.xml
@@ -123,4 +123,5 @@
Schakel klik op opdracht tekst uit om te verzenden
Ongewenste aanraking voorkomen
Zwevende knop dialoogknop uitschakelen
+ Vlaggenbeveiliging uitschakelen
diff --git a/TMessagesProj/src/main/res/values-no-rNO/strings_na.xml b/TMessagesProj/src/main/res/values-no-rNO/strings_na.xml
index de58613443..114cc81b23 100644
--- a/TMessagesProj/src/main/res/values-no-rNO/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-no-rNO/strings_na.xml
@@ -123,4 +123,5 @@
Deaktiver komprimeringstekst for å sende
Å forhindre utilsiktet berøring
Deaktiver dialoger med flytende knapp
+ Deaktiver Flag sikker
diff --git a/TMessagesProj/src/main/res/values-pl-rPL/strings_na.xml b/TMessagesProj/src/main/res/values-pl-rPL/strings_na.xml
index cb8968b9d9..6583b74875 100644
--- a/TMessagesProj/src/main/res/values-pl-rPL/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-pl-rPL/strings_na.xml
@@ -123,4 +123,5 @@
Wyłącz tekst polecenia, aby wysłać
Aby zapobiec przypadkowemu dotknięciu
Wyłącz pływający przycisk dialogów
+ Wyłącz bezpieczne flagi
diff --git a/TMessagesProj/src/main/res/values-pt-rBR/strings_na.xml b/TMessagesProj/src/main/res/values-pt-rBR/strings_na.xml
index 00751b33e5..bb01f3c4be 100644
--- a/TMessagesProj/src/main/res/values-pt-rBR/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-pt-rBR/strings_na.xml
@@ -123,4 +123,5 @@
Desative clique no texto de comando para enviar
Para prevenir toques acidentais
Desativar Botão de Diálogos Flutuantes
+ Desativar Sinalização Segura
diff --git a/TMessagesProj/src/main/res/values-pt-rPT/strings_na.xml b/TMessagesProj/src/main/res/values-pt-rPT/strings_na.xml
index 00751b33e5..bb01f3c4be 100644
--- a/TMessagesProj/src/main/res/values-pt-rPT/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-pt-rPT/strings_na.xml
@@ -123,4 +123,5 @@
Desative clique no texto de comando para enviar
Para prevenir toques acidentais
Desativar Botão de Diálogos Flutuantes
+ Desativar Sinalização Segura
diff --git a/TMessagesProj/src/main/res/values-ro-rRO/strings_na.xml b/TMessagesProj/src/main/res/values-ro-rRO/strings_na.xml
index 2edf38ea98..f6c528dd1f 100644
--- a/TMessagesProj/src/main/res/values-ro-rRO/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-ro-rRO/strings_na.xml
@@ -123,4 +123,5 @@
Dezactivează clic pe textul de comandă pentru a trimite
Pentru a preveni atingerea accidentală
Dezactivează dialogul cu butonul plutitor
+ Dezactivează Steagul Securizat
diff --git a/TMessagesProj/src/main/res/values-ru-rRU/strings_na.xml b/TMessagesProj/src/main/res/values-ru-rRU/strings_na.xml
index 49fd08412e..4da2175c3e 100644
--- a/TMessagesProj/src/main/res/values-ru-rRU/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-ru-rRU/strings_na.xml
@@ -123,4 +123,5 @@
Отключите команду клика для отправки
Во избежание случайного касания
Отключить плавающую кнопку диалогов
+ Отключить защиту флага
diff --git a/TMessagesProj/src/main/res/values-sv-rSE/strings_na.xml b/TMessagesProj/src/main/res/values-sv-rSE/strings_na.xml
index 6d60110fc1..938148ad81 100644
--- a/TMessagesProj/src/main/res/values-sv-rSE/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-sv-rSE/strings_na.xml
@@ -123,4 +123,5 @@
Inaktivera klickkommandotext för att skicka
För att förhindra oavsiktligt tryck
Inaktivera dialoger flytande knapp
+ Inaktivera flagga säkert
diff --git a/TMessagesProj/src/main/res/values-uk-rUA/strings_na.xml b/TMessagesProj/src/main/res/values-uk-rUA/strings_na.xml
index 950420834f..fd1bc7b65f 100644
--- a/TMessagesProj/src/main/res/values-uk-rUA/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-uk-rUA/strings_na.xml
@@ -123,4 +123,5 @@
Вимкнути командний текст, щоб відправити
Щоб запобігти випадковому дотику
Вимкнути плаваючу кнопку діалогу
+ Вимкнути захист прапора
diff --git a/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml b/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml
index 21794a61cf..3c1b52471f 100644
--- a/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml
@@ -123,4 +123,5 @@
禁用点击指令文本发送
妈妈再也不用担心我会误触啦
禁用主页浮动按钮
+ Disable Flag Secure
diff --git a/TMessagesProj/src/main/res/values-zh-rTW/strings_na.xml b/TMessagesProj/src/main/res/values-zh-rTW/strings_na.xml
index 0bf77dbb99..f7f5eb14b4 100644
--- a/TMessagesProj/src/main/res/values-zh-rTW/strings_na.xml
+++ b/TMessagesProj/src/main/res/values-zh-rTW/strings_na.xml
@@ -123,4 +123,5 @@
Disable click command text to send
To prevent accidental touch
Disable Dialogs Floating Button
+ Disable Flag Secure
diff --git a/TMessagesProj/src/main/res/values/strings_na.xml b/TMessagesProj/src/main/res/values/strings_na.xml
index 38824ecc1f..3590c3ff32 100644
--- a/TMessagesProj/src/main/res/values/strings_na.xml
+++ b/TMessagesProj/src/main/res/values/strings_na.xml
@@ -123,4 +123,5 @@
Disable click command text to send
To prevent accidental touch
Disable Dialogs Floating Button
+ Disable Flag Secure