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

Commit 93612ad0 authored by Tommaso Fonda's avatar Tommaso Fonda Committed by Jan Altensen
Browse files

SystemUI: Allow ignoring IWlan status in the mobile icon pipeline

Some legacy devices such as mata and cheryl lack an IWlan stack. These
devices can set this overlay to true in order not to incorrectly display
a permanent exclamation mark over the mobile network signal icon.

Change-Id: Ib695e124c48990abe2f4d542edff058e3a7e76be
parent bc0c3437
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2024 The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->
<resources>
    <!-- Whether the mobile signal icon pipeline should ignore IWlan status -->
    <bool name="config_mobileIconIgnoresIWlan">false</bool>
</resources>
+4 −1
Original line number Diff line number Diff line
@@ -294,7 +294,10 @@ class MobileIconInteractorImpl(
                isDefaultConnectionFailed,
                isInService,
            ) { isDefaultDataEnabled, isDefaultConnectionFailed, isInService ->
                !isDefaultDataEnabled || isDefaultConnectionFailed || !isInService
                val mobileIconIgnoresIWlan = context.resources.getBoolean(
                    com.android.systemui.R.bool.config_mobileIconIgnoresIWlan)
                (!isDefaultDataEnabled && !mobileIconIgnoresIWlan) || isDefaultConnectionFailed ||
                    !isInService
            }
            .stateIn(scope, SharingStarted.WhileSubscribed(), true)