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

Commit c3d69a79 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Michael Kwan
Browse files

DO NOT MERGE - Fix NPE when requesting outsets for detached view.

Outsets are used during measure/layout pass, but this can be called on a
view that is not currently attached.


Bug: 21602590
Change-Id: I5860d5e7c20131e2650bdb8635e9659e76205fa1
(cherry picked from commit e660d4e9)
parent 45eb3ea6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -6672,7 +6672,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * @hide
     */
    public void getOutsets(Rect outOutsetRect) {
        if (mAttachInfo != null) {
            outOutsetRect.set(mAttachInfo.mOutsets);
        } else {
            outOutsetRect.setEmpty();
        }
    }
    /**