Fix flicker when unlocking

When the device was locked the fullscreen stack was laid out
fulllscreen, even though the configuration was half-screen, which
lead to a race between the app drawing and the unlock animation
so sometimes you could see the fullscreen frame when the unlock
animation started.

Instead, only layout in fullscreen if the docked stack is fully
"hidden".

Bug: 27154882
Change-Id: I4ba0c396eb0312c2bf2d911903b68c88d28aae8c
This commit is contained in:
Jorim Jaggi
2016-04-01 16:05:10 -07:00
parent c6d7160e6b
commit f4fa8cb79b

View File

@@ -425,7 +425,7 @@ class Task implements DimLayer.DimLayerUser {
if (mFullscreen if (mFullscreen
|| !StackId.isTaskResizeableByDockedStack(mStack.mStackId) || !StackId.isTaskResizeableByDockedStack(mStack.mStackId)
|| displayContent == null || displayContent == null
|| displayContent.getDockedStackLocked() != null) { || displayContent.getDockedStackVisibleForUserLocked() != null) {
return true; return true;
} }
return false; return false;