1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

feat: disable double tab reactions

This commit is contained in:
luvletter2333 2022-01-17 18:57:31 +08:00
parent 2de5fba21f
commit 56a79e2f35
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
4 changed files with 5 additions and 0 deletions

View File

@ -1470,6 +1470,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
if (reaction == null) {
return false;
}
if (NekoConfig.disableDoubleTabReactions.Bool()) return false;
boolean available = dialog_id >= 0;
if (!available && chatInfo != null) {
for (String s : chatInfo.available_reactions) {
@ -1497,6 +1498,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
if (reaction == null) {
return;
}
if (NekoConfig.disableDoubleTabReactions.Bool()) return;
boolean available = dialog_id >= 0;
if (!available && chatInfo != null) {
for (String s : chatInfo.available_reactions) {

View File

@ -164,6 +164,7 @@ public class NekoConfig {
public static ConfigItem rememberAllBackMessages = addConfig("rememberAllBackMessages", configTypeBool, false);
public static ConfigItem hideSendAsChannel = addConfig("hideSendAsChannel", configTypeBool, false);
public static ConfigItem showSpoilersDirectly = addConfig("showSpoilersDirectly", configTypeBool, false);
public static ConfigItem disableDoubleTabReactions = addConfig("disableDoubleTabReactions", configTypeBool, false);
public static ConfigItem disableAutoDownloadingWin32Executable = addConfig("Win32ExecutableFiles", configTypeBool, true);
public static ConfigItem disableAutoDownloadingArchive = addConfig("ArchiveFiles", configTypeBool, true);

View File

@ -105,6 +105,7 @@ public class NekoChatSettingsActivity extends BaseFragment implements Notificati
private final AbstractConfigCell rememberAllBackMessagesRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.rememberAllBackMessages));
private final AbstractConfigCell hideSendAsChannelRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.hideSendAsChannel));
private final AbstractConfigCell showSpoilersDirectlyRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.showSpoilersDirectly));
private final AbstractConfigCell disableDoubleTabReactionsRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.disableDoubleTabReactions));
private final AbstractConfigCell divider1 = cellGroup.appendCell(new ConfigCellDivider());
private final AbstractConfigCell header2 = cellGroup.appendCell(new ConfigCellHeader(LocaleController.getString("AutoDownload")));
private final AbstractConfigCell win32Row = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.disableAutoDownloadingWin32Executable));

View File

@ -126,6 +126,7 @@
<string name="autoUpdateSubInfo">Update proxies automatically</string>
<string name="hideSendAsChannel">Hide send as channel</string>
<string name="showSpoilersDirectlyRow">Display Spoiler messages directly</string>
<string name="disableDoubleTabReactions">Disable double tap reactions</string>
<string name="SaveToDownloadCount_zero">Saving %1$d files to downloads</string>
<string name="SaveToDownloadCount_one">Saving %1$d file to downloads</string>
<string name="SaveToDownloadCount_two">Saving %1$d files to downloads</string>