From 2df1f59d7aa74134ad008d9aab1dba1602158eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 19 Feb 2021 21:47:58 +0800 Subject: [PATCH] Hide ignore blocked row --- .../nekomimi/nekogram/settings/NekoChatSettingsActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java index 42a47c4b8..e8e562956 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java @@ -278,7 +278,7 @@ public class NekoChatSettingsActivity extends BaseFragment implements Notificati stickerSize2Row = rowCount++; chatRow = rowCount++; - ignoreBlockedRow = rowCount++; + ignoreBlockedRow = NekoConfig.ignoreBlocked || NekoXConfig.developerMode ? rowCount++ : -1; ignoreMutedCountRow = rowCount++; disableChatActionRow = rowCount++; @@ -608,7 +608,7 @@ public class NekoChatSettingsActivity extends BaseFragment implements Notificati textCell.setTextAndValueAndCheck(LocaleController.getString("IgnoreBlocked", R.string.IgnoreBlocked), LocaleController.getString("IgnoreBlockedAbout", R.string.IgnoreBlockedAbout), NekoConfig.ignoreBlocked, true, true); } else if (position == ignoreMutedCountRow) { textCell.setTextAndCheck(LocaleController.getString("IgnoreMutedCount", R.string.IgnoreMutedCount), NekoConfig.ignoreMutedCount, true); - } else if (position == skipOpenLinkConfirmRow) { + } else if (position == skipOpenLinkConfirmRow) { textCell.setTextAndCheck(LocaleController.getString("SkipOpenLinkConfirm", R.string.SkipOpenLinkConfirm), NekoConfig.skipOpenLinkConfirm, true); } else if (position == disableChatActionRow) { textCell.setTextAndCheck(LocaleController.getString("DisableChatAction", R.string.DisableChatAction), NekoConfig.disableChatAction, true);