Skip to content

Commit

Permalink
fix: all features
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYi0526 committed Oct 10, 2024
1 parent dc53504 commit 50cee89
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 39 deletions.
1 change: 1 addition & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- dev
- test
paths-ignore:
- '**.md'
- '.github/**'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ object NaConfig {
addConfig(
"ShowHiddenFeature",
ConfigItem.configTypeBool,
false
true
)
val searchHashtagDefaultPageChannel =
addConfig(
Expand Down

0 comments on commit 50cee89

Please sign in to comment.