Merge "Add missing null checks" into nyc-dev
This commit is contained in:
@@ -745,6 +745,12 @@ public class SurfaceView extends View {
|
|||||||
Log.d(TAG, String.format("%d windowPositionLostRT RT, frameNr = %d",
|
Log.d(TAG, String.format("%d windowPositionLostRT RT, frameNr = %d",
|
||||||
System.identityHashCode(this), frameNumber));
|
System.identityHashCode(this), frameNumber));
|
||||||
}
|
}
|
||||||
|
IWindowSession session = mSession;
|
||||||
|
MyWindow window = mWindow;
|
||||||
|
if (session == null || window == null) {
|
||||||
|
// We got detached prior to receiving this, abort
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (mRtHandlingPositionUpdates) {
|
if (mRtHandlingPositionUpdates) {
|
||||||
mRtHandlingPositionUpdates = false;
|
mRtHandlingPositionUpdates = false;
|
||||||
// This callback will happen while the UI thread is blocked, so we can
|
// This callback will happen while the UI thread is blocked, so we can
|
||||||
@@ -757,7 +763,7 @@ public class SurfaceView extends View {
|
|||||||
"postion = [%d, %d, %d, %d]", System.identityHashCode(this),
|
"postion = [%d, %d, %d, %d]", System.identityHashCode(this),
|
||||||
mWinFrame.left, mWinFrame.top,
|
mWinFrame.left, mWinFrame.top,
|
||||||
mWinFrame.right, mWinFrame.bottom));
|
mWinFrame.right, mWinFrame.bottom));
|
||||||
mSession.repositionChild(mWindow, mWinFrame.left, mWinFrame.top,
|
session.repositionChild(window, mWinFrame.left, mWinFrame.top,
|
||||||
mWinFrame.right, mWinFrame.bottom, frameNumber, mWinFrame);
|
mWinFrame.right, mWinFrame.bottom, frameNumber, mWinFrame);
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
Log.e(TAG, "Exception from relayout", ex);
|
Log.e(TAG, "Exception from relayout", ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user