OSDN Git Service

AccessibilityNodeInfo incorrectly cloned.
authorSvetoslav Ganov <svetoslavganov@google.com>
Mon, 9 Sep 2013 20:36:43 +0000 (13:36 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Mon, 9 Sep 2013 20:43:21 +0000 (13:43 -0700)
commit6685f1bacead5f765c71a49f5cf0dc88750344d5
tree89482f893b05c244f8870f37701382e5cabc10e2
parent93d71945d88f38b784de3c12d7ae781e97735582
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