OSDN Git Service

Make Undo/Redo work properly with IME.
authorKeisuke Kuroyanagi <ksk@google.com>
Fri, 1 Jul 2016 09:42:05 +0000 (18:42 +0900)
committerKeisuke Kuroyanagi <ksk@google.com>
Fri, 1 Jul 2016 09:42:05 +0000 (18:42 +0900)
commit113c004f396b8cfffa5ae875793cb9dd080dd09b
tree058587a88777a67a7832d7defaba27bc99939a86
parent9324764e9e45cbfdcf28126f670c79e3dc0034a0
Make Undo/Redo work properly with IME.

- Record undo operating even when composing text.
- Combine several edits in a batch edit into single undo
  operation.
- Freeze undo state on commitCorrection.
- Freeze undo state on switching insert/delete to
  delete/insert.
- Merge replace with delete or replace if they are for the
  same region when composing text.
- Merge insertion with replace when they can be single
  insertion when composing text.
- Perform drag and drop in batch edit.

Bug: 28588666

Change-Id: I37da124b3a05b322769e4d97fb0ce074aa4fc358
core/java/android/widget/Editor.java