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 committed Jan 20, 2024
1 parent dafb15c commit 2ed8e25
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 2ed8e25

Please sign in to comment.