OSDN Git Service

AccessibilityNodeInfo incorrectly cloned.
authorSvetoslav Ganov <svetoslavganov@google.com>
Mon, 9 Sep 2013 20:36:43 +0000 (13:36 -0700)
committerThe Android Automerger <android-build@android.com>
Mon, 9 Sep 2013 23:01:12 +0000 (16:01 -0700)
commitcef676f4729ec200db0bc1baf4137e9b51bbf2a5
tree1be196b42a46bfebbd00c66463a5b59d05f177bc
parent5b6a7cff5ba850d8ecaac6bfdba9efa19cd338ef
AccessibilityNodeInfo incorrectly cloned.

The code that creates a clone of an AccessibilityNodeInfo was not cloning
the extension objects (CollectionInfo, CollectionItemInfo, and RangeInfo)
and as a result if the original accessibility node info is recycled the
extension objects of the clone are also recycled and now if one tries to
recycle the clone gets an exception that the extension objects are already
recycled. Fun!

bug:10642952

Change-Id: I84192466bff0e865de04b79079e6ceecdffb37a6
core/java/android/view/accessibility/AccessibilityNodeInfo.java