Skip to content

Commit

Permalink
fix: test backend button
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Nov 24, 2024
1 parent af84ffb commit abfc8e2
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -734,19 +734,18 @@ public void getOutline(View view, Outline outline) {
menu.setSubMenuOpenSide(1);
menu.setBackground(Theme.createSelectorDrawable(Theme.getColor(Theme.key_listSelector)));

menu.addSubItem(menu_proxy, R.drawable.msg2_proxy_on, LocaleController.getString("Proxy", R.string.Proxy))
.setContentDescription(LocaleController.getString("Proxy", R.string.Proxy));
menu.addSubItem(menu_language, R.drawable.ic_translate, LocaleController.getString("Language", R.string.Language))
.setContentDescription(LocaleController.getString("Language", R.string.Language));
menu.addSubItem(menu_bot_login, R.drawable.list_bot, LocaleController.getString("BotLogin", R.string.BotLogin))
.setContentDescription(LocaleController.getString("BotLogin", R.string.BotLogin));
menu.addSubItem(menu_qr_login, R.drawable.msg_qrcode, LocaleController.getString("ImportLogin", R.string.ImportLogin))
.setContentDescription(LocaleController.getString("ImportLogin", R.string.ImportLogin));
menu.addSubItem(menu_custom_api, R.drawable.baseline_vpn_key_24, LocaleController.getString("CustomApi", R.string.CustomApi))
.setContentDescription(LocaleController.getString("CustomApi", R.string.CustomApi));
menu.addSubItem(menu_custom_dc, R.drawable.msg_retry, LocaleController.getString("CustomBackend",
R.string.CustomBackend))
.setContentDescription(LocaleController.getString("CustomBackend", R.string.CustomBackend));
menu.addSubItem(menu_proxy, R.drawable.msg2_proxy_on, LocaleController.getString(R.string.Proxy))
.setContentDescription(LocaleController.getString(R.string.Proxy));
menu.addSubItem(menu_language, R.drawable.ic_translate, LocaleController.getString(R.string.Language))
.setContentDescription(LocaleController.getString(R.string.Language));
menu.addSubItem(menu_bot_login, R.drawable.list_bot, LocaleController.getString(R.string.BotLogin))
.setContentDescription(LocaleController.getString(R.string.BotLogin));
menu.addSubItem(menu_qr_login, R.drawable.msg_qrcode, LocaleController.getString(R.string.ImportLogin))
.setContentDescription(LocaleController.getString(R.string.ImportLogin));
menu.addSubItem(menu_custom_api, R.drawable.baseline_vpn_key_24, LocaleController.getString(R.string.CustomApi))
.setContentDescription(LocaleController.getString(R.string.CustomApi));
menu.addSubItem(menu_custom_dc, R.drawable.msg_retry, LocaleController.getString(R.string.CustomBackend))
.setContentDescription(LocaleController.getString(R.string.CustomBackend));

menu.setOnClickListener(v -> {
menu.toggleSubMenu();
Expand Down Expand Up @@ -2486,7 +2485,7 @@ public void afterTextChanged(Editable s) {
});
}

final boolean allowTestBackend = BuildVars.DEBUG_VERSION;
final boolean allowTestBackend = true;
if (allowTestBackend && activityMode == MODE_LOGIN) {
testBackendCheckBox = new CheckBoxCell(context, 2);
testBackendCheckBox.setText(getString(R.string.DebugTestBackend), "", testBackend = getConnectionsManager().isTestBackend(), false);
Expand Down

0 comments on commit abfc8e2

Please sign in to comment.