Merge "Fix display list issue that was crashing an external app."

This commit is contained in:
Chet Haase
2011-09-26 14:46:19 -07:00
committed by Android (Google) Code Review

View File

@@ -2824,6 +2824,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
if (hasDisplayList) {
displayList = child.getDisplayList();
if (!displayList.isValid()) {
// Uncommon, but possible. If a view is removed from the hierarchy during the call
// to getDisplayList(), the display list will be marked invalid and we should not
// try to use it again.
displayList = null;
hasDisplayList = false;
}
}
if (hasNoCache) {