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

Commit d542af69 authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

Satellite: Only show device based satellite icon when flag is enabled

Bug:378963772
Change-Id: I3c723cab4aede3431bffca027dddd7a02d0d1561
Test: that only 1 icon is seen
Flag: NONE bugfix
parent c42073f4
Loading
Loading
Loading
Loading
+28 −24
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ constructor(
        }

    private val showIcon =
        if (interactor.isOpportunisticSatelliteIconEnabled) {
            canShowIcon
                .flatMapLatest { canShow ->
                    if (!canShow) {
@@ -141,6 +142,9 @@ constructor(
                    columnName = COL_VISIBLE,
                    initialValue = false,
                )
            } else {
                flowOf(false)
            }
            .stateIn(scope, SharingStarted.WhileSubscribed(), false)

    override val icon: StateFlow<Icon?> =