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

Commit 77b012a7 authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

Move initial ZenMode query to background

Flag: N/A
Bug: 324142248
Test: Manually reporduced the issue
Change-Id: If7e39eb50885c7d1ad16dda36a751f3e16d1a25e
parent 08e44ec9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -421,10 +421,12 @@ constructor(
        smallTimeListener?.update(shouldTimeListenerRun)
        largeTimeListener?.update(shouldTimeListenerRun)

        bgExecutor.execute {
            // Query ZenMode data
            zenModeCallback.onZenChanged(zenModeController.zen)
            zenModeCallback.onNextAlarmChanged()
        }
    }

    fun unregisterListeners() {
        if (!isRegistered) {