Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump org.checkerframework:checker-qual from 3.31.0 to 3.32.0 #12

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
73b7d14
build(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json fr…
dependabot[bot] Feb 28, 2023
910aa24
build(deps): bump gson from 2.10 to 2.10.1 (#72)
dependabot[bot] Feb 28, 2023
ff35cab
build(deps): bump com.github.triplet.play from 3.8.0 to 3.8.1 (#75)
dependabot[bot] Feb 28, 2023
5ad6553
build(deps): bump org.checkerframework:checker-qual (#76)
dependabot[bot] Feb 28, 2023
8daecc1
refactor: make it nagram, thou nnngram now
NextAlone Feb 18, 2023
0b24476
revert: enable obfuscate
NextAlone Feb 18, 2023
eafbb08
refactor: upgrade jvmTarget and gradle
NextAlone Feb 18, 2023
e5f7eaf
refactor: use nagram icons
NextAlone Feb 18, 2023
b9e104c
feat: hide drawer items
NextAlone Feb 18, 2023
74ccf3d
feat: truly hide phone in drawer
NextAlone Feb 18, 2023
659b5c1
feat: replace noquote forward icon
NextAlone Feb 18, 2023
cc0e0ad
feat: do not unarchive by swipe
NextAlone Feb 18, 2023
628eba4
feat: hide bot button in input field
NextAlone Feb 19, 2023
4e39734
refactor: upgrade AGP version
NextAlone Feb 19, 2023
92ee310
style: use popup with double tao
NextAlone Feb 19, 2023
bc6901a
feat: hide message seen tooltip
NextAlone Feb 19, 2023
c050bae
fix: dialog icons
NextAlone Feb 19, 2023
f95517d
feat: disable reaction in chat menu
NextAlone Feb 19, 2023
53681ce
feat: disable report in chat menu
NextAlone Feb 19, 2023
8797790
fix: hide forward time when not valid
NextAlone Feb 20, 2023
edb46ef
feat: disable notification bubble
NextAlone Feb 20, 2023
95de9ca
feat: show online status
NextAlone Feb 20, 2023
667c4ed
docs: jump to begining
NextAlone Feb 28, 2023
4305e12
build(deps): bump org.checkerframework:checker-qual
dependabot[bot] Mar 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: hide bot button in input field
Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com>
  • Loading branch information
NextAlone committed Feb 28, 2023
commit 628eba4e3345779dd48ef439c4f1417a802f1666
Original file line number Diff line number Diff line change
Expand Up @@ -7701,7 +7701,7 @@ private void updateBotButton(boolean animated) {
botButton.setContentDescription(LocaleController.getString("AccDescrBotKeyboard", R.string.AccDescrBotKeyboard));
}
} else {
if (!canShowBotsMenu) {
if (!canShowBotsMenu && !ConfigManager.getBooleanOrFalse(Defines.hideInputFieldBotButton)) {
createBotButton();
botButtonDrawable.setIcon(R.drawable.input_bot1, true);
botButton.setContentDescription(LocaleController.getString("AccDescrBotCommands", R.string.AccDescrBotCommands));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public class ChatSettingActivity extends BaseActivity {
private int showTabsOnForwardRow;
private int disableStickersAutoReorderRow;
private int doNotUnarchiveBySwipeRow;
private int hideInputFieldBotButtonRow;
private int chat2Row;


Expand Down Expand Up @@ -302,8 +303,12 @@ protected void onItemClick(View view, int position, float x, float y) {
if (view instanceof TextCheckCell) {
((TextCheckCell) view).setChecked(ConfigManager.getBooleanOrFalse(Defines.doNotUnarchiveBySwipe));
}
} else if (position == hideInputFieldBotButtonRow) {
ConfigManager.toggleBoolean(Defines.hideInputFieldBotButton);
if (view instanceof TextCheckCell) {
((TextCheckCell) view).setChecked(ConfigManager.getBooleanOrFalse(Defines.hideInputFieldBotButton));
}
}

}

@Override
Expand Down Expand Up @@ -354,6 +359,7 @@ protected void updateRows() {
showTabsOnForwardRow = rowCount++;
disableStickersAutoReorderRow = rowCount++;
doNotUnarchiveBySwipeRow = rowCount++;
hideInputFieldBotButtonRow = rowCount++;
chat2Row = rowCount++;
if (listAdapter != null) {
listAdapter.notifyDataSetChanged();
Expand Down Expand Up @@ -474,6 +480,9 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position, boole
} else if (position == doNotUnarchiveBySwipeRow) {
textCell.setTextAndCheck(LocaleController.getString("doNotUnarchiveBySwipe", R.string.doNotUnarchiveBySwipe),
ConfigManager.getBooleanOrFalse(Defines.doNotUnarchiveBySwipe), true);
} else if (position == hideInputFieldBotButtonRow) {
textCell.setTextAndCheck(LocaleController.getString("hideInputFieldBotButton", R.string.hideInputFieldBotButton),
ConfigManager.getBooleanOrFalse(Defines.hideInputFieldBotButton), true);
}
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public class Defines {

// Nnngram
public static final String doNotUnarchiveBySwipe = "doNotUnarchiveBySwipe";
public static final String hideInputFieldBotButton = "hideInputFieldBotButton";

// Custom API
public static final String customAPI = "customAPI";
Expand Down
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-zh/strings_nnngram.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,5 @@
<string name="AppIconDarkGreen">深翠</string>
<string name="AppIconNeon">霓虹</string>
<string name="doNotUnarchiveBySwipe">禁用滑动取消归档</string>
<string name="hideInputFieldBotButton">隐藏输入框机器人按钮</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values/strings_nnngram.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,5 @@
<string name="AppIconDarkGreen">Dark Green</string>
<string name="AppIconNeon">Neon</string>
<string name="doNotUnarchiveBySwipe">Do not unarchive by swipe</string>
<string name="hideInputFieldBotButton">Hide input field bot button</string>
</resources>