Outsets are used during measure/layout pass, but this can be called on a
view that is not currently attached.
Bug:
21602590
Change-Id: I23e3acc45ca4bf7684d8913f839e29e8e9e94d78
* @hide
*/
public void getOutsets(Rect outOutsetRect) {
- outOutsetRect.set(mAttachInfo.mOutsets);
+ if (mAttachInfo != null) {
+ outOutsetRect.set(mAttachInfo.mOutsets);
+ } else {
+ outOutsetRect.setEmpty();
+ }
}
/**
}
}
- onDetachedFromWindow();
+ onDetachedFromWindows();
onDetachedFromWindowInternal();
InputMethodManager imm = InputMethodManager.peekInstance();