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

Commit 7e00195f authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Add missing cleanup of setOnKeyguardTopLevelNotificationRemovedRunnable

Test: none
Flag: EXEMPT bugfix
Change-Id: I12c7620f4808880895471a82130dde5a799715d8
parent 2184c052
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -204,10 +204,15 @@ constructor(
        }

        controller.setOnHeightChangedRunnable { viewModel.notificationStackChanged() }
        disposables += DisposableHandle { controller.setOnHeightChangedRunnable(null) }

        controller.setOnKeyguardTopLevelNotificationRemovedRunnable {
            viewModel.notificationStackChangedInstant()
        }
        disposables += DisposableHandle { controller.setOnHeightChangedRunnable(null) }
        disposables += DisposableHandle {
            controller.setOnKeyguardTopLevelNotificationRemovedRunnable(null)
        }

        disposables += view.onLayoutChanged { viewModel.notificationStackChanged() }

        return disposables