diff options
author | James Cook <jamescook@google.com> | 2015-03-25 14:04:01 -0700 |
---|---|---|
committer | James Cook <jamescook@google.com> | 2015-03-25 14:04:01 -0700 |
commit | 2205425b94d62c64fc189c36b92b44067d371cc6 (patch) | |
tree | bca94b356edc09162d61e20d7ea3f0f673751ba3 /rs/java/android/renderscript/RenderScript.java | |
parent | 2bf51f47d9e1b8563b58ce5ebde2f609d728fbf3 (diff) |
Fix undo of text pasted into TextView with TextWatcher
Pasted text is directly inserted into the TextView buffer, so it looks
like a programmatic insert to the undo system. This is fine, but we
need to be sure that subsequent modification by a TextWatcher (for
example, to add spaces to a credit card number) is merged into the same
undo operation -- from the user's perspective, pasting in the text and
having spaces inserted are a single operation.
Also clean up mForceMerge flag in EditOperation -- we don't need to
store it across edits, just use it when a new edit comes in.
CTS test to follow.
Bug: 19332904
Change-Id: I7b3c97c08b83faebeab9f1708b0d6eac6d151d50
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions