diff options
| author | 2018-03-12 15:49:08 -0700 | |
|---|---|---|
| committer | 2018-03-12 15:49:08 -0700 | |
| commit | b08ed04b8d4de3d31118aef80a660a00a427d506 (patch) | |
| tree | 95c83caa3da4a9270f8d603abdc781168bd6f0c5 | |
| parent | 228f8f877af1faa71c184df5e8519225444cc2ac (diff) | |
WindowState: Update mLastSurfaceInsets at creation time.
Otherwise the first call to updateSurfacePosition may think the surface
insets are changing and defer a transaction, but the client may
not necessarily render another frame as the insets were not actually
changing.
Bug: 74084094
Test: Manual. go/wm-smoke.
Change-Id: I917dff05c4ac0b578d3ccc48c95a10cad8d6d0f9
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowState.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index c4185fa9a599..41d95117db7a 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -693,6 +693,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP mOwnerCanAddInternalSystemWindow = ownerCanAddInternalSystemWindow; mWindowId = new WindowId(this); mAttrs.copyFrom(a); + mLastSurfaceInsets.set(mAttrs.surfaceInsets); mViewVisibility = viewVisibility; mPolicy = mService.mPolicy; mContext = mService.mContext; |