Android-RTEditor icon indicating copy to clipboard operation
Android-RTEditor copied to clipboard

Bug: orientation change resets the caret position

Open AndroidDeveloperLB opened this issue 7 years ago • 1 comments

v1.6.7

Steps:

  1. put some text in the editText of this library.
  2. Put the caret in the middle of the text.
  3. change orientation.

The bug is that the caret goes to the beginning of the text.

AndroidDeveloperLB avatar Mar 07 '18 14:03 AndroidDeveloperLB

The only way I've found to solve this, is by setting the caret to where you were before, in the onResume function. Here's a sample project to show my workaround: RTEditTextTest.zip

Please have a better way to solve this. I tried various ways, but none worked.

AndroidDeveloperLB avatar Mar 11 '18 08:03 AndroidDeveloperLB