diff options
author | Filip Gruszczynski <gruszczy@google.com> | 2015-08-17 17:42:04 -0700 |
---|---|---|
committer | Filip Gruszczynski <gruszczy@google.com> | 2015-08-17 17:52:24 -0700 |
commit | 3fcb5d66e4cb95a327ffc867847b16bf10fef0db (patch) | |
tree | 11e8908705d87e564f62c5fbdabc055ec2e78b6e /services | |
parent | 757e2c7f3e6ee93c69ecdd9de18fc03eff72d00e (diff) | |
download | frameworks_base-3fcb5d66e4cb95a327ffc867847b16bf10fef0db.zip frameworks_base-3fcb5d66e4cb95a327ffc867847b16bf10fef0db.tar.gz frameworks_base-3fcb5d66e4cb95a327ffc867847b16bf10fef0db.tar.bz2 |
Clear old clip rect when creating new surface.
This fixes an issue where a window state animator holds on to old clip
rect from previous transition and applies it to the newly created surface.
Bug: 22851074
Change-Id: Ic416a2a0c5d0f69fc80d5656541256ade41c9c36
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/wm/WindowStateAnimator.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/WindowStateAnimator.java b/services/core/java/com/android/server/wm/WindowStateAnimator.java index 3ac6bba..ab56d5e 100644 --- a/services/core/java/com/android/server/wm/WindowStateAnimator.java +++ b/services/core/java/com/android/server/wm/WindowStateAnimator.java @@ -40,7 +40,6 @@ import android.graphics.RectF; import android.graphics.Region; import android.os.Debug; import android.os.RemoteException; -import android.os.UserHandle; import android.util.Slog; import android.view.Display; import android.view.DisplayInfo; @@ -837,6 +836,8 @@ class WindowStateAnimator { mSurfaceX = 0; mSurfaceY = 0; w.mLastSystemDecorRect.set(0, 0, 0, 0); + mHasClipRect = false; + mClipRect.set(0, 0, 0, 0); mLastClipRect.set(0, 0, 0, 0); // Set up surface control with initial size. |