Skip to content

Commit

Permalink
feat: reset custom title
Browse files Browse the repository at this point in the history
Use https://t.me/nasettings/g?r=customTitle, and press `Default`

Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Dec 2, 2023
1 parent 00972ee commit 0b18951
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,11 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
}
listAdapter.notifyItemChanged(pos, PARTIAL);
});
builder.setNeutralButton(LocaleController.getString("Default", R.string.Default), (dialogInterface, i) -> {
ConfigManager.deleteValue("customTitle");
Config.customTitle = "Nnngram";
listAdapter.notifyItemChanged(pos, PARTIAL);
});
builder.setNegativeButton(LocaleController.getString("Cancel", R.string.Cancel), null);
builder.show().setOnShowListener(dialog -> {
editText.requestFocus();
Expand Down

0 comments on commit 0b18951

Please sign in to comment.