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

Commit bc9fdc92 authored by Romain Guy's avatar Romain Guy
Browse files

Make sure the drawing cache is invalidated when reattaching a view.

Bug #2373677
parent 3c79a4ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2268,7 +2268,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
        addInArray(child, index);

        child.mParent = this;
        child.mPrivateFlags = (child.mPrivateFlags & ~DIRTY_MASK) | DRAWN;
        child.mPrivateFlags = (child.mPrivateFlags & ~DIRTY_MASK & ~DRAWING_CACHE_VALID) | DRAWN;

        if (child.hasFocus()) {
            requestChildFocus(child, child.findFocus());