From 03064a1e605d3d7cfc8d7f49655d50dfdf436bd8 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 12 Jan 2022 15:05:55 -0800 Subject: [PATCH] Directly assign mDepth A request to set a new depth is ignored if the surface is currently invalid. We should cache what was the requested value, so it will be applied once the surface is valid again. Test: manual Fixes: 209028986 Change-Id: I812816da4b0139c7ea7b53a9fb00f11265ecdea8 --- .../com/android/launcher3/statehandlers/DepthController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java index e1d89a13dd..3242d42f93 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java +++ b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java @@ -289,9 +289,8 @@ public class DepthController implements StateHandler, if (Float.compare(mDepth, depthF) == 0) { return; } - if (dispatchTransactionSurface(depthF)) { - mDepth = depthF; - } + dispatchTransactionSurface(depthF); + mDepth = depthF; } public void onOverlayScrollChanged(float progress) {