summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJames Cook <jamescook@google.com>2015-03-25 14:04:01 -0700
committerJames Cook <jamescook@google.com>2015-03-25 14:04:01 -0700
commit2205425b94d62c64fc189c36b92b44067d371cc6 (patch)
treebca94b356edc09162d61e20d7ea3f0f673751ba3 /rs/java/android/renderscript/RenderScript.java
parent2bf51f47d9e1b8563b58ce5ebde2f609d728fbf3 (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