Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f28595e4 authored by Chet Haase's avatar Chet Haase
Browse files

Fix invalidation issue with actionbar items

When a view hierarchy becomes VISIBLE, it is possible that the display
list of some of the subtrees needs to be recreated. In particular, if
the subtree was measured while it was GONE, then the children probably
didn't have a valid size. If a display list is created for any of the
subnodes in the tree during this time, then they may have clipped the
children out.

The fix is to force the parent to become INVALIDATED whenever a child
view's bounds change (and it is VISIBLE).

Change-Id: I3624253e65354289f4fb94c9ba76a7e6fb82af9a
parent 22e883dd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9332,6 +9332,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
                // the DRAWN bit.
                mPrivateFlags |= DRAWN;
                invalidate(true);
                // parent display list may need to be recreated based on a change in the bounds
                // of any child
                invalidateParentCaches();
            }

            // Reset drawn bit to original value (invalidate turns it off)