From 573e8e170656f0b5e24fed966890f4d9e68ec26b Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Mon, 11 Jan 2016 12:23:51 -0800 Subject: [PATCH] Fix black screen when launching app from Recents into non-docked area In this case, we're putting the app into a fullscreen stack that is resized due to docked stack. When setting up the thumbnail scale up animation, we have to treat this case as animating into freeform window, as the containing frame will not be fullscreen, and it's not a clip rect. For freeform windows, we set up scaling and translation, and don't change the clip rect. bug: 26435476 Change-Id: Ic1ac71bfc814afd62572027fa11663c80d903a2d --- .../core/java/com/android/server/wm/WindowManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 2477acd15cd91..8e698a8a44a6c 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -2977,7 +2977,7 @@ public class WindowManagerService extends IWindowManager.Stub + " frame=" + frame + " insets=" + insets + " surfaceInsets=" + surfaceInsets); Animation a = mAppTransition.loadAnimation(lp, transit, enter, mCurConfiguration.orientation, frame, insets, surfaceInsets, isVoiceInteraction, - freeform, atoken.mTask.mTaskId); + !fullscreen, atoken.mTask.mTaskId); if (a != null) { if (DEBUG_ANIM) { RuntimeException e = null;