mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2025-01-06 02:35:09 +01:00
feat: disable double tab reactions
This commit is contained in:
parent
2de5fba21f
commit
56a79e2f35
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user