From 4546cdaaa1544d45e5489b4aed00dea9e21e9b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 19 Apr 2021 20:25:33 +0800 Subject: [PATCH] Ignore restrictions by default for non-play versions --- .../src/main/java/tw/nekomimi/nekogram/NekoConfig.java | 3 ++- TMessagesProj/src/main/res/values/strings_nekox.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java index 416ab9ea3..c4ebcb927 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java @@ -10,6 +10,7 @@ import android.graphics.Typeface; import org.telegram.messenger.AndroidUtilities; import org.telegram.messenger.ApplicationLoader; +import org.telegram.messenger.BuildVars; import org.telegram.messenger.FileLog; import org.telegram.messenger.LocaleController; import org.telegram.messenger.NotificationCenter; @@ -297,7 +298,7 @@ public class NekoConfig { autoPauseVideo = preferences.getBoolean("autoPauseVideo", false); disableProximityEvents = preferences.getBoolean("disableProximityEvents", false); - ignoreContentRestrictions = preferences.getBoolean("ignoreContentRestrictions", false); + ignoreContentRestrictions = preferences.getBoolean("ignoreContentRestrictions", !BuildVars.isPlay); useChatAttachMediaMenu = preferences.getBoolean("useChatAttachMediaMenu", true); disableLinkPreviewByDefault = preferences.getBoolean("disableLinkPreviewByDefault", false); sendCommentAfterForward = preferences.getBoolean("sendCommentAfterForward", true); diff --git a/TMessagesProj/src/main/res/values/strings_nekox.xml b/TMessagesProj/src/main/res/values/strings_nekox.xml index ed7951a55..80cbbe9e5 100644 --- a/TMessagesProj/src/main/res/values/strings_nekox.xml +++ b/TMessagesProj/src/main/res/values/strings_nekox.xml @@ -183,7 +183,7 @@ Share My Public Key Disable Vibration Ignore content restrictions - Ignores android restrictions on messages locally. This may be banned by the server in the future, and you will need to evaluate the local legality of this option yourself. + Ignores play restrictions on messages. Send comment after forwarding Unpin message Unpin all messages