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

Commit 6efc29f0 authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

Eagerly update ClockSize & isLargeClockVisible flows

This should fix an issue where both clocks would appear on mokey. It
appears that the isLargeClockVisible may not be always subscribed on
mokey/aosp.

Bug: 327249281
Test: Mostly presubmits, having a hard time reproducing
Flag: com.android.systemui.migrate_clocks_to_blueprint
Change-Id: I4c7edab90b11e8b7e3de1538413466d50f675779
parent 48952cc7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ constructor(
            }
            .stateIn(
                scope = applicationScope,
                started = SharingStarted.WhileSubscribed(),
                started = SharingStarted.Eagerly,
                initialValue = ClockSize.LARGE,
            )

@@ -74,7 +74,7 @@ constructor(
            .map { it == ClockSize.LARGE }
            .stateIn(
                scope = applicationScope,
                started = SharingStarted.WhileSubscribed(),
                started = SharingStarted.Eagerly,
                initialValue = true,
            )