diff options
author | 2024-02-07 14:44:19 -0500 | |
---|---|---|
committer | 2024-02-07 14:44:19 -0500 | |
commit | 0af331811658aa30d6bb6076ca047b337673f072 (patch) | |
tree | 155ba06ad9bcd97f799ffe33e22482d1406043d3 | |
parent | 3f220263b9de9c161f174abda4f61653434bae39 (diff) |
Remove call to postToView
Calling collectFlow has the same effect, so it is not necessary. The
call is the last one outside the shade package, so this allows us to
remove it from the interface.
Bug: 303267342
Flag: NONE
Test: Manual and presubmits
Change-Id: I69a29fa3f6b4c9520351e114ae9fcb52a0eebc67
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java | 27 |
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); } } |