Skip to content

Commit

Permalink
style: scroll to row after import settings
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao authored and LiuYi0526 committed Jan 20, 2024
1 parent 3b68c5b commit 7258dde
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ public void importToRow(String key, String value, Runnable unknown) {
var builder = new AlertDialog.Builder(context);
builder.setTitle(LocaleController.getString("ImportSettings", R.string.ImportSettings));
builder.setMessage(LocaleController.getString("ImportSettingsAlert", R.string.ImportSettingsAlert));
builder.setNegativeButton(LocaleController.getString("Cancel", R.string.Cancel), null);
builder.setNegativeButton(LocaleController.getString("Cancel", R.string.Cancel), (dialogInter, i) -> scrollToRow(key, unknown));
builder.setPositiveButton(LocaleController.getString("Import", R.string.Import), (dialogInter, i) -> {
config.changed(new_value);
config.saveConfig();
updateRows();
scrollToRow(key, unknown);
});
builder.show();
} else {
Expand Down

0 comments on commit 7258dde

Please sign in to comment.