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

Commit dab559a2 authored by Michael Jurka's avatar Michael Jurka
Browse files

exposing isDirty() method on View

- needed in Launcher2 for implementation of caching views to bitmaps

Change-Id: I1dc1e8e4328106f88e1aa8e55ccb17b08fc9756b
parent fb9bcdb1
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -214102,6 +214102,17 @@
 visibility="public"
>
</method>
<method name="isDirty"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="isDrawingCacheEnabled"
 return="boolean"
 abstract="false"
+9 −0
Original line number Diff line number Diff line
@@ -5852,6 +5852,15 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
        return mBottom;
    }

    /**
     * True if this view has changed since the last time being drawn.
     *
     * @return The dirty state of this view.
     */
    public boolean isDirty() {
        return (mPrivateFlags & DIRTY_MASK) != 0;
    }

    /**
     * Sets the bottom position of this view relative to its parent. This method is meant to be
     * called by the layout system and should not generally be called otherwise, because the