f143ace3aa80227b7612c0a9428b2de996c4920a |
|
02-Mar-2015 |
James Cook <jamescook@google.com> |
Fix crash in UndoManager after parceling TextView UndoOwner maintains a manual reference count of the number of undo operations it is associated with, but this count is not restored (and hence becomes zero) when UndoManager is parceled and unparceled. This can cause the count to underflow on subsequent text editing. A test for this will land separately in CTS. Bug: 19568283 Change-Id: Ic50890828db9679c7cef805388957d66dc75422d
/frameworks/base/core/java/android/content/UndoOwner.java
|
f59152cf00520d1bd36949b44faca2e1fcf6d28f |
|
27-Feb-2015 |
James Cook <jamescook@google.com> |
Reland: Add basic support for Ctrl-Z to editable TextViews Reland 9201e797833f35b9afb219f88c10d3b6fda02a4e which was reverted in c8f08e07a47cc259a25caed3f731ee7044328635. Original description: * Add an UndoManager to the Editor for each editable TextView * Record operations as being owned by that Editor * Parcel the undo state * Wire hardware keyboard shortcuts Ctrl-Z for undo and Ctrl-Shift-Z for redo into TextView shortcut handling. * Expose IDs for "undo" and "redo" for symmetry with cut/copy/paste. Additional fix: * Ensure each UndoOwner always has a valid mManager, even after the UndoManager is parceled and restored. Bug: 19332904 Bug: 19505388 Change-Id: Iad4476e6e9ca952281e69bf22c07cca915dfa7bd
/frameworks/base/core/java/android/content/UndoOwner.java
|
b811e64cb325c8b9c46a2e8e97ef1aa86ac8664b |
|
05-Sep-2013 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #10461600: KLP API Review: UndoManager Hide, hide, hide! Change-Id: Ie04825723d9392a4258e2d738828201ee387f7c6
/frameworks/base/core/java/android/content/UndoOwner.java
|
3aa49b6fece334ace7525d42c1f6d0b7cdc1fbfb |
|
27-Apr-2013 |
Dianne Hackborn <hackbod@google.com> |
New UndoManager. Basic implementation of an undo manager. Supports multi-level undo/redo, building on the top undo state as edits occur, managing multiple distinct entities in the undo state (such as embedded objects in a document), and saving/restoring the full undo state. Still some work remaining on correctly dealing with dependencies between undo states that hold multiple owners. Also do a simple implementation of undo state in TextView to see how things actually work. The implementation here is very primitive: it needs a lot more work to correctly identify when to merge undo ops, is not trying to do anything smart with style spans, etc. Change-Id: Ie30f4e133351e2f569ffb48c6c44a2b19cadee27
/frameworks/base/core/java/android/content/UndoOwner.java
|