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

Commit cc162545 authored by Sooraj Sasindran's avatar Sooraj Sasindran Committed by Android (Google) Code Review
Browse files

Merge "Satellite: Only show device based satellite icon when flag is enabled" into main

parents 7d7002f7 d542af69
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?> =