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

Commit c096823f authored by Sarah Chin's avatar Sarah Chin
Browse files

Revert "Consider preferred network type for 5G icon"

This reverts commit ad9b7091.

Reason for revert: b/155958112

Bug: 155958112
Change-Id: I6fadabaea9eb2b051e2e2fc6daf3f8b642ddaccc
parent ad9b7091
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -351,11 +351,6 @@ public class NetworkTypeController extends StateMachine {
    }

    private @Annotation.OverrideNetworkType int getNrDisplayType() {
        // Don't show 5G icon if preferred network type does not include 5G
        if ((mTelephonyManager.getPreferredNetworkTypeBitmask()
                & TelephonyManager.NETWORK_TYPE_BITMASK_NR) == 0) {
            return TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE;
        }
        // Icon display keys in order of priority
        List<String> keys = new ArrayList<>();
        // TODO: Update for NR SA
+0 −2
Original line number Diff line number Diff line
@@ -89,8 +89,6 @@ public class NetworkTypeControllerTest extends TelephonyTest {

        replaceInstance(Handler.class, "mLooper", mDisplayInfoController, Looper.myLooper());
        mNetworkTypeController = new NetworkTypeController(mPhone, mDisplayInfoController);
        doReturn(TelephonyManager.NETWORK_TYPE_BITMASK_NR)
                .when(mTelephonyManager).getPreferredNetworkTypeBitmask();
    }

    @After