Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5952f3e3 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[CS] Fetch LS/shade visible status from interactor to clear notif effect

Bug: 296050180
Test: receive vibrating notif on lockscreen and pull shade down before
vibration finishes -> verify vibration stops early

Change-Id: I1c5784bc6005d5b1d3735d054da89469958df952
parent 278310e3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3200,7 +3200,8 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
                    // down on the lockscreen), clear notification LED, vibration,
                    // ringing.
                    // Other transitions are covered in WindowRootViewVisibilityInteractor.
                    if (mVisible && (newState == StatusBarState.SHADE_LOCKED
                    if (mWindowRootViewVisibilityInteractor.isLockscreenOrShadeVisible().getValue()
                            && (newState == StatusBarState.SHADE_LOCKED
                            || mStatusBarStateController.goingToFullShade())) {
                        clearNotificationEffects();
                    }