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

This reverts commit b010291ace.

Change-Id: If86ce92daac9e80d5fc2e9f707d937e7c6e91a74
This commit is contained in:
Filip Gruszczynski
2015-07-09 01:06:40 +00:00
parent b010291ace
commit 45eb3ea667

View File

@@ -6672,11 +6672,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* @hide
*/
public void getOutsets(Rect outOutsetRect) {
if (mAttachInfo != null) {
outOutsetRect.set(mAttachInfo.mOutsets);
} else {
outOutsetRect.setEmpty();
}
outOutsetRect.set(mAttachInfo.mOutsets);
}
/**
@@ -13570,7 +13566,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
}
onDetachedFromWindows();
onDetachedFromWindow();
onDetachedFromWindowInternal();
ListenerInfo li = mListenerInfo;