summaryrefslogtreecommitdiff
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
author Chet Haase <chet@google.com> 2013-06-06 07:27:53 -0700
committer Chet Haase <chet@google.com> 2013-06-06 07:27:53 -0700
commitce08ce539a083b31cfffd3aa98173885f0e4a3d9 (patch)
treedb08c3cc6de14c1f33ce164d081fd8b283bd9061 /libs/hwui/GradientCache.cpp
parent972cfadbe72b8e51eee4f8cd88bcad60d22a5c29 (diff)
Fix crash with LayoutTransition and ViewOverlay collision
When a View is added to a ViewGroupOverlay, it must not be parented in another container. If it is, it will automatically be removed. This works in general, but if there is a LayoutTransition on the view's parent, then the actual removal will be delayed until the transition completes. This means that the call to add(view) in the ViewGroupOverlay's container will fail and throw an exception because the view is still parented for the duration of the LayoutTransition. This fix cancels the running transition to ensure that the view is not parented prior to adding it to the overlay's container. Issue #9303245 Crash combo: add(View) and animateLayoutChanges Change-Id: Id4eaddccf64c353fc77e020882b978cdeb14c0ef
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
0 files changed, 0 insertions, 0 deletions