Merge "Verify drawables added to ViewOverlay so they can be scheduled"

This commit is contained in:
Alan Viverette
2013-12-12 02:08:42 +00:00
committed by Android (Google) Code Review

View File

@@ -155,6 +155,11 @@ public class ViewOverlay {
}
}
@Override
protected boolean verifyDrawable(Drawable who) {
return super.verifyDrawable(who) || (mDrawables != null && mDrawables.contains(who));
}
public void add(View child) {
if (child.getParent() instanceof ViewGroup) {
ViewGroup parent = (ViewGroup) child.getParent();