fix: Clear stuck workspace blur after drawer/folder close (#6998)
Depth blur could leave RenderEffect on workspace/hotseat when SurfaceControl apply returned early, then setDepth(0) skipped re-apply. Always sync view blur with depth and force re-apply when settling to NORMAL; also clear leftover effects on folder dismiss. blurWorkspaceDepthTargets can run on API 30; setRenderEffect and createBlurEffect require API 31 and would throw on R. --------- Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
67959b4d66
commit
c32af3c8c5
4 files changed
+66
-25
No files matched your search
@@ -1147,6 +1147,14 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
|
||||
}
|
||||
SCALE_PROPERTY.set(launcher.getWorkspace(), 1f);
|
||||
SCALE_PROPERTY.set(launcher.getHotseat(), 1f);
|
||||
// Clear any stuck workspace/hotseat RenderEffect if we are not in a depth-blur state.
|
||||
// Expressive folder open/close can race with All Apps depth blur and leave icons blurred.
|
||||
if (Utilities.ATLEAST_S
|
||||
&& launcher.getStateManager().getState().getDepth(launcher) == 0f) {
|
||||
for (View target : launcher.getDepthBlurTargets()) {
|
||||
target.setRenderEffect(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user