summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager.cpp
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2016-04-11 18:13:01 -0700
committerDoris Liu <tianliu@google.com>2016-04-12 11:13:10 -0700
commitcdedc9a80d971c8152b6f2674c040c79cff3b8dd (patch)
tree3788af7a3b2d6d1d4ef5fcd6dca5398112d9462b /libs/androidfw/AssetManager.cpp
parentb6e1dafe78b2875ebe1837508e28c8dce2693b19 (diff)
Check whether VD tree is still valid before calling native setter
VD tree is ref-counted in both Java and native. VD's child nodes are entirely owned by the native tree, as VD nodes in native should outlive its Java counterparts, with one exception: when there's an infinite UI animator running on VD, the animator may have weak reference to a few child nodes. In the case of hidden animator running infinitely, the child nodes would keep getting the animation pulse while the rest of the tree would have been destroyed. To prevent the setters triggered by animation from calling into native, we need to check whether the tree is still valid before going down into JNI. Bug: 28104172 Change-Id: Ie9d4bf3898c0c23e620a4747624d24b8ab779743
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
0 files changed, 0 insertions, 0 deletions