Some fixes

This commit is contained in:
Thomas 2022-11-15 16:11:36 +01:00
parent f1d26f9de7
commit 5e1dffa65e

View file

@ -1423,12 +1423,14 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
int selectedPosition = ((AlertDialog) dialog).getListView().getCheckedItemPosition();
editor.putString(context.getString(R.string.SET_COMPOSE_LANGUAGE) + account.user_id + account.instance, finalCodesArr[selectedPosition]);
editor.apply();
statusDraft.language = finalCodesArr[selectedPosition];
notifyItemChanged(holder.getLayoutPosition());
dialog.dismiss();
});
builder.setNegativeButton(R.string.reset, (dialog, which) -> {
editor.putString(context.getString(R.string.SET_COMPOSE_LANGUAGE) + account.user_id + account.instance, null);
editor.apply();
statusDraft.language = null;
notifyItemChanged(holder.getLayoutPosition());
dialog.dismiss();
});