Set the cursor in ReplyFragment to the end on start

captchafix
Florens Douwes 11 years ago
parent e8b5e863df
commit 8865881a3d
  1. 3
      Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java

@ -39,6 +39,7 @@ import android.app.DialogFragment;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.os.Bundle; import android.os.Bundle;
import android.text.Selection;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.Gravity; import android.view.Gravity;
import android.view.KeyEvent; import android.view.KeyEvent;
@ -163,6 +164,8 @@ public class ReplyFragment extends DialogFragment {
emailView.getEditText().setText(draft.email); emailView.getEditText().setText(draft.email);
subjectView.getEditText().setText(draft.subject); subjectView.getEditText().setText(draft.subject);
commentView.setText(draft.comment); commentView.setText(draft.comment);
// To the end of the comment
Selection.setSelection(commentView.getText(), commentView.getText().length());
setFile(draft.fileName, draft.file); setFile(draft.fileName, draft.file);
getCaptcha(); getCaptcha();

Loading…
Cancel
Save