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

Commit 0867d262 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when requesting outsets for detached view."

parents 6ec08c8d 31d300f9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -7392,7 +7392,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();
        }
    }
    /**