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

Commit 6d189259 authored by Sarah Chin's avatar Sarah Chin
Browse files

Add icon logic for 5G SA mode

Test: manual test with fake NR SA ServiceState
Bug: 153395625
Change-Id: Ic15d2a0ce0fd287f44e244d08ba399f83f6100b7
Merged-In: Ic15d2a0ce0fd287f44e244d08ba399f83f6100b7
parent bd03ae8b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -284,6 +284,9 @@ public class MobileSignalController extends SignalController<
        mNetworkToIconLookup.put(toDisplayIconKey(
                TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE),
                TelephonyIcons.NR_5G_PLUS);
        mNetworkToIconLookup.put(toIconKey(
                TelephonyManager.NETWORK_TYPE_NR),
                TelephonyIcons.NR_5G);
    }

    private String getIconKey() {
@@ -306,9 +309,9 @@ public class MobileSignalController extends SignalController<
            case TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO:
                return toIconKey(TelephonyManager.NETWORK_TYPE_LTE) + "_CA_Plus";
            case TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA:
                return "5G";
                return toIconKey(TelephonyManager.NETWORK_TYPE_NR);
            case TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE:
                return "5G_Plus";
                return toIconKey(TelephonyManager.NETWORK_TYPE_NR) + "_Plus";
            default:
                return "unsupported";
        }