Revert "Fix NPE when requesting outsets for detached view."
This reverts commit b010291ace.
Change-Id: If86ce92daac9e80d5fc2e9f707d937e7c6e91a74
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user