Merge change 4374 into donut
* changes: Fixes a potential NPE in View.
This commit is contained in:
@@ -7157,8 +7157,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
||||
getLocationInWindow(location);
|
||||
|
||||
final AttachInfo info = mAttachInfo;
|
||||
location[0] += info.mWindowLeft;
|
||||
location[1] += info.mWindowTop;
|
||||
if (info != null) {
|
||||
location[0] += info.mWindowLeft;
|
||||
location[1] += info.mWindowTop;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user