Browse Source

reply focus and cursor fixes

pull/61/merge
oogee 6 years ago
parent
commit
1103d4015c
  1. 3
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

3
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

@ -653,9 +653,10 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
Context.MODE_PRIVATE);
holder.replyEditor.setText(drafts.getString(String.valueOf(viewModel.getTopicId()), ""));
}
holder.replyEditor.getEditText().setSelection(holder.replyEditor.getText().length());
if (backPressHidden) {
holder.replyEditor.requestFocus();
holder.replyEditor.requestEditTextFocus();
backPressHidden = false;
}
} else if (currentHolder instanceof EditMessageViewHolder) {

Loading…
Cancel
Save