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

Commit 23e9f3e2 authored by Matt Pietal's avatar Matt Pietal
Browse files

Update keyguard status bar when dozing changes

There are cases after boot where this does not immediately update,
causing the status bar to linger on AOD.

Fixes: 386269025
Test: atest KeyguardStatusBarViewControllerTest
Flag: EXEMPT bugfix
Change-Id: I2cd8842c3bee505a2ceb79082dafd654b94a4231
parent 259c4d27
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -560,7 +560,6 @@ class KeyguardStatusBarViewControllerTest : SysuiTestCase() {
        updateStateToKeyguard()

        controller.setDozing(true)
        controller.updateViewState()

        Truth.assertThat(keyguardStatusBarView.visibility).isEqualTo(View.INVISIBLE)
    }
@@ -573,7 +572,6 @@ class KeyguardStatusBarViewControllerTest : SysuiTestCase() {
        updateStateToKeyguard()

        controller.setDozing(false)
        controller.updateViewState()

        Truth.assertThat(keyguardStatusBarView.visibility).isEqualTo(View.VISIBLE)
    }
@@ -633,7 +631,6 @@ class KeyguardStatusBarViewControllerTest : SysuiTestCase() {
        Truth.assertThat(keyguardStatusBarView.visibility).isEqualTo(View.VISIBLE)

        controller.setDozing(true)
        controller.updateViewState()

        // setDozing(true) should typically cause the view to hide. But since the flag is on, we
        // should ignore these set dozing calls and stay the same visibility.
+1 −0
Original line number Diff line number Diff line
@@ -528,6 +528,7 @@ public class KeyguardStatusBarViewController extends ViewController<KeyguardStat
            return;
        }
        mDozing = dozing;
        updateViewState();
    }

    /** Animate the keyguard status bar in. */