From 50cee89cf863564b40855309cb0858ede36aaed6 Mon Sep 17 00:00:00 2001 From: LiuYi0526 <50787709+LiuYi0526@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:10:34 +0800 Subject: [PATCH] fix: all features --- .github/workflows/debug.yml | 1 + .../java/org/telegram/ui/ProfileActivity.java | 4 --- .../NekoExperimentalSettingsActivity.java | 34 ------------------- .../kotlin/xyz/nextalone/nagram/NaConfig.kt | 2 +- 4 files changed, 2 insertions(+), 39 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 9b8528c51e..c89eed9ddd 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -4,6 +4,7 @@ on: push: branches: - dev + - test paths-ignore: - '**.md' - '.github/**' diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index 6f8a7a9fcf..46b4f76d77 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -4268,10 +4268,6 @@ public void openExceptions() { public boolean onItemClick(View view, int position) { if (position == versionRow) { pressCount++; - if (pressCount >= 5) { - NaConfig.INSTANCE.getShowHiddenFeature().toggleConfigBool(); - Toast.makeText(getParentActivity(), LocaleController.getString("ErrorOccurred", R.string.ErrorOccurred), Toast.LENGTH_SHORT).show(); - } if (pressCount >= 2 || BuildVars.DEBUG_PRIVATE_VERSION) { AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity(), resourcesProvider); builder.setTitle(LocaleController.getString("DebugMenu", R.string.DebugMenu)); 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 9d09cfbe69..9a9d002f98 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java @@ -142,40 +142,6 @@ public class NekoExperimentalSettingsActivity extends BaseNekoXSettingsActivity private static final int INTENT_PICK_EXTERNAL_STICKER_DIRECTORY = 514; public NekoExperimentalSettingsActivity() { - if (!NaConfig.INSTANCE.getShowHiddenFeature().Bool()) { - cellGroup.rows.remove(localPremiumRow); - cellGroup.rows.remove(localQuoteColorRow); - cellGroup.rows.remove(enhancedFileLoaderRow); - cellGroup.rows.remove(disableFilteringRow); - cellGroup.rows.remove(unlimitedFavedStickersRow); - cellGroup.rows.remove(unlimitedPinnedDialogsRow); - cellGroup.rows.remove(enableStickerPinRow); - - cellGroup.rows.remove(forceCopyRow); - cellGroup.rows.remove(disableFlagSecureRow); - cellGroup.rows.remove(hideSponsoredMessageRow); - cellGroup.rows.remove(ignoreBlockedRow); - cellGroup.rows.remove(regexFiltersEnabledRow); - cellGroup.rows.remove(regexFiltersEnableInChatsRow); - cellGroup.rows.remove(disableChatActionRow); - cellGroup.rows.remove(disableChoosingStickerRow); - - cellGroup.rows.remove(headerStory); - cellGroup.rows.remove(disableStoriesRow); - cellGroup.rows.remove(disableSendReadStoriesRow); - cellGroup.rows.remove(dividerStory); - - NekoConfig.localPremium.setConfigBool(false); - NaConfig.INSTANCE.getForceCopy().setConfigBool(false); - NaConfig.INSTANCE.getDisableFlagSecure().setConfigBool(false); - NekoConfig.hideSponsoredMessage.setConfigBool(false); - NekoConfig.ignoreBlocked.setConfigBool(false); - NaConfig.INSTANCE.getRegexFiltersEnabled().setConfigBool(false); - NekoConfig.disableChatAction.setConfigBool(false); - NekoConfig.disableChoosingSticker.setConfigBool(false); - NaConfig.INSTANCE.getDisableSendReadStories().setConfigBool(false); - } - addRowsToMap(cellGroup); } diff --git a/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt b/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt index 1dae2d16d0..e860ce1b12 100644 --- a/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt +++ b/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt @@ -624,7 +624,7 @@ object NaConfig { addConfig( "ShowHiddenFeature", ConfigItem.configTypeBool, - false + true ) val searchHashtagDefaultPageChannel = addConfig(