summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
author Chet Haase <chet@google.com> 2012-04-19 13:39:50 -0700
committer Chet Haase <chet@google.com> 2012-04-19 13:39:50 -0700
commitb78c284bd535f48207750e5a406474ea22381edd (patch)
treedd05f5bdae2690d5b601506d8e0e8b1bfaa186f2 /libs/hwui/PathCache.cpp
parent5b086eb5438b5048bd3fbf4e2ed9390ec10245b3 (diff)
Always execute actions on the runQueue
A View that is not attached will place posted actions on the ViewRoot's runQueue. Previously, this runQueue was only ever executed during a layout (during performTraversals()). This works in most situations (a View that is added to or removed from the hierarchy will force a layout in general), but not in all cases. For example, a new View being added to a ListView will not cause a layout, so any actions posted to that View prior to its being attached will not be run until some indeterminate time later when a layout happens to run. The fix is to execute the (typically empty) runQueue on every traversal. Issue #6366678 View.post() ignored when called on an unattached ListView item Change-Id: I94e6fdd9da6bb57fd83b547f8d742cd0ddfecbd6
Diffstat (limited to 'libs/hwui/PathCache.cpp')
0 files changed, 0 insertions, 0 deletions