From 8865881a3d9659aef06da4e8a4c95ccef61ef491 Mon Sep 17 00:00:00 2001 From: Florens Douwes Date: Wed, 7 May 2014 20:14:36 +0200 Subject: [PATCH] Set the cursor in ReplyFragment to the end on start --- Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java b/Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java index 38edb95d..d51ffa75 100644 --- a/Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java +++ b/Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java @@ -39,6 +39,7 @@ import android.app.DialogFragment; import android.content.DialogInterface; import android.graphics.Bitmap; import android.os.Bundle; +import android.text.Selection; import android.text.TextUtils; import android.view.Gravity; import android.view.KeyEvent; @@ -163,6 +164,8 @@ public class ReplyFragment extends DialogFragment { emailView.getEditText().setText(draft.email); subjectView.getEditText().setText(draft.subject); commentView.setText(draft.comment); + // To the end of the comment + Selection.setSelection(commentView.getText(), commentView.getText().length()); setFile(draft.fileName, draft.file); getCaptcha();