From 1103d4015c5e8f3d0f08089d8f7a51dda3e1b291 Mon Sep 17 00:00:00 2001 From: oogee Date: Mon, 19 Nov 2018 20:15:23 +0200 Subject: [PATCH] reply focus and cursor fixes --- .../java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java index 168b04ea..ef972d01 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java @@ -653,9 +653,10 @@ class TopicAdapter extends RecyclerView.Adapter { 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) {