diff options
author | James Cook <jamescook@google.com> | 2015-03-03 14:40:14 -0800 |
---|---|---|
committer | James Cook <jamescook@google.com> | 2015-03-18 14:36:41 -0700 |
commit | d2026686702f6c893e871c078dc5176347b3b27e (patch) | |
tree | 540f6fccb419f4ecde64015669583af6a46c64f9 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 11b07c05ac5d2c3e9c4a4f5c83047091ed8e50bc (diff) |
Improve undo support for text entered with IME
Use span properties to detect:
* Composing text - don't record undo operations
* Completing a composition - record an insert undo operation
* Canceling a composition - don't record
Save the composition state on parcel/unparcel.
Stop using begin/end batch edit to try to detect when a TextWatcher
is modifying the text. IMEs trigger multiple InputFilter passes in
a single batch edit. Use SpannableStringBuilder to determine when
we're in a TextWatcher callback because it is the authority on that
state.
Fix a bug in undo manager where it doesn't forget undos correctly if
there are more than one in the stack.
Bug: 19332904
Change-Id: Iaa9b0b2a7bf6683302cc85e7616e5d5fcc9fa202
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions