summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Justin Weir <justinweir@google.com> 2024-02-08 16:07:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-02-08 16:07:14 +0000
commitdc86f285a91d5dd82bd3421494a07ccf34aaf448 (patch)
tree6bc6b749575a4d282f3df7bd3c7eee190535aef8
parent9fc8d287492afe22f5895ff6c0e7dc61061c9e58 (diff)
parent0af331811658aa30d6bb6076ca047b337673f072 (diff)
Merge "Remove call to postToView" into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java27
1 files changed, 13 insertions, 14 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
index 3ad60d946c1c..7f7eb04f9970 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
@@ -482,20 +482,19 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
if (KeyguardWmStateRefactor.isEnabled()) {
// Show the keyguard views whenever we've told WM that the lockscreen is visible.
- mShadeViewController.postToView(() ->
- collectFlow(
- getViewRootImpl().getView(),
- combineFlows(
- mWmLockscreenVisibilityInteractor.get().getLockscreenVisibility(),
- mSurfaceBehindInteractor.get().isAnimatingSurface(),
- (lockscreenVis, animatingSurface) ->
- // TODO(b/322546110): Waiting until we're not animating the
- // surface is a workaround to avoid jank. We should actually
- // fix the source of the jank, and then hide the keyguard
- // view without waiting for the animation to end.
- lockscreenVis || animatingSurface
- ),
- this::consumeShowStatusBarKeyguardView));
+ collectFlow(
+ getViewRootImpl().getView(),
+ combineFlows(
+ mWmLockscreenVisibilityInteractor.get().getLockscreenVisibility(),
+ mSurfaceBehindInteractor.get().isAnimatingSurface(),
+ (lockscreenVis, animatingSurface) ->
+ // TODO(b/322546110): Waiting until we're not animating the
+ // surface is a workaround to avoid jank. We should actually
+ // fix the source of the jank, and then hide the keyguard
+ // view without waiting for the animation to end.
+ lockscreenVis || animatingSurface
+ ),
+ this::consumeShowStatusBarKeyguardView);
}
}