From 7f7b84794bcd0df6f0524bac10772213c68091d9 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Wed, 15 Feb 2017 19:21:00 -0800 Subject: [PATCH] Pinned stack animation: Also clear finalClipRect. The code calculating it doesn't understand our scaling of Surface insets and so it clips us too small. Since we scale to the stack bounds anyway there is no sort of "draw over other apps" risk. Bug: 35396882 Test: Move skeleton pip activity between states, ensure there are no cut off portions during animation. Change-Id: I973db1879dd588d829e3fe828e9350f2647cdc2c --- .../core/java/com/android/server/wm/WindowStateAnimator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/wm/WindowStateAnimator.java b/services/core/java/com/android/server/wm/WindowStateAnimator.java index d2ea64c89a98a..c475d60c9cbb3 100644 --- a/services/core/java/com/android/server/wm/WindowStateAnimator.java +++ b/services/core/java/com/android/server/wm/WindowStateAnimator.java @@ -1353,6 +1353,7 @@ class WindowStateAnimator { // expose the whole window in buffer space, and not risk extending // past where the system would have cropped us clipRect = null; + finalClipRect = null; // Various surfaces in the scaled stack may resize at different times. // We need to ensure for each surface, that we disable transformation matrix