commit | b546a2d8f8b7b80cb77bff31ac0f5f43cd6e4eba | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Sat Jul 03 17:28:56 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Jul 03 17:28:56 2021 +0000 |
tree | 794d8f2ea188e1361332b81806b1c5b0e239ff82 | |
parent | 94680385cd2e72af8d594788dc76f2a3b06fcc2d [diff] | |
parent | e55878cedf301632b37055a9e60a24988de2b01d [diff] |
Merge "Use launcher surface when removing launch target" into sc-dev am: e55878cedf Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15193282 Change-Id: Ife796fb90e961d55df70a87cc8f3b84d08a8cc2d
diff --git a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java index bb8b62d..82582ee 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java +++ b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java
@@ -180,6 +180,12 @@ * Sets the specified app target surface to apply the blur to. */ public void setSurface(SurfaceControl surface) { + // Set launcher as the SurfaceControl when we don't need an external target anymore. + if (surface == null) { + ViewRootImpl viewRootImpl = mLauncher.getDragLayer().getViewRootImpl(); + surface = viewRootImpl != null ? viewRootImpl.getSurfaceControl() : null; + } + if (mSurface != surface) { mSurface = surface; if (surface != null) {