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

Commit 39de9bfa authored by Alan Viverette's avatar Alan Viverette
Browse files

Verify drawables added to ViewOverlay so they can be scheduled

Change-Id: I73d0633966f84876e2093c874acd6813efdbc370
parent 4524cc64
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();