Merge "Make sure the drawing cache is invalidated when reattaching a view. Bug #2373677"
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user