Merge "Add lastProcStateSeqDispatchedToObservers to UidRecord."
diff --git a/core/java/android/view/SurfaceView.java b/core/java/android/view/SurfaceView.java
index 824e035..f559d42 100644
--- a/core/java/android/view/SurfaceView.java
+++ b/core/java/android/view/SurfaceView.java
@@ -479,6 +479,8 @@
"SurfaceView - " + viewRoot.getTitle().toString(),
mSurfaceWidth, mSurfaceHeight, mFormat,
mSurfaceFlags);
+ } else if (mSurfaceControl == null) {
+ return;
}
boolean realSizeChanged = false;
@@ -625,7 +627,7 @@
}
}
} catch (Exception ex) {
- Log.e(TAG, "Exception from relayout", ex);
+ Log.e(TAG, "Exception configuring surface", ex);
}
if (DEBUG) Log.v(
TAG, "Layout: x=" + mScreenRect.left + " y=" + mScreenRect.top
@@ -662,7 +664,7 @@
mScreenRect.right, mScreenRect.bottom));
setParentSpaceRectangle(mScreenRect, -1);
} catch (Exception ex) {
- Log.e(TAG, "Exception from relayout", ex);
+ Log.e(TAG, "Exception configuring surface", ex);
}
}
}
@@ -762,7 +764,7 @@
mScreenRect.right, mScreenRect.bottom));
setParentSpaceRectangle(mScreenRect, frameNumber);
} catch (Exception ex) {
- Log.e(TAG, "Exception from relayout", ex);
+ Log.e(TAG, "Exception configuring surface", ex);
}
}
mRTLastReportedPosition.setEmpty();