Merge "Fix NPE when requesting outsets for detached view." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
844fbff80c
@@ -7366,7 +7366,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void getOutsets(Rect outOutsetRect) {
|
public void getOutsets(Rect outOutsetRect) {
|
||||||
outOutsetRect.set(mAttachInfo.mOutsets);
|
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();
|
onDetachedFromWindowInternal();
|
||||||
|
|
||||||
InputMethodManager imm = InputMethodManager.peekInstance();
|
InputMethodManager imm = InputMethodManager.peekInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user