Verify drawables added to ViewOverlay so they can be scheduled

Change-Id: I73d0633966f84876e2093c874acd6813efdbc370
This commit is contained in:
Alan Viverette
2013-12-11 13:15:47 -08:00
parent 4524cc649a
commit 39de9bfa7f

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();