1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00

Ignore restrictions by default for non-play versions

This commit is contained in:
世界 2021-04-19 20:25:33 +08:00
parent 22d8712fb0
commit 4546cdaaa1
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -183,7 +183,7 @@
<string name="ShareMyKey">Share My Public Key</string>
<string name="DisableVibration">Disable Vibration</string>
<string name="IgnoreContentRestrictions">Ignore content restrictions</string>
<string name="IgnoreContentRestrictionsNotice">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.</string>
<string name="IgnoreContentRestrictionsNotice">Ignores play restrictions on messages.</string>
<string name="SendCommentAfterForward">Send comment after forwarding</string>
<string name="UnpinMessageX">Unpin message</string>
<string name="UnpinMessagesAll">Unpin all messages</string>