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

Commit 844fbff8 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." into mnc-dev

parents 96e727d1 e660d4e9
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -7366,7 +7366,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();
        }
    }
    /**
@@ -14508,7 +14512,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            }
        }
        onDetachedFromWindow();
        onDetachedFromWindows();
        onDetachedFromWindowInternal();
        InputMethodManager imm = InputMethodManager.peekInstance();