style: scroll to row after import settings

This commit is contained in:
xtaodada 2024-01-20 20:27:14 +08:00
parent d8b13619f1
commit 1269f82da6
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -138,11 +138,12 @@ public class BaseNekoXSettingsActivity extends BaseFragment {
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 {