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

Commit 417a0500 authored by Jason Monk's avatar Jason Monk
Browse files

Hide SIM and IMEI for wifi only devices

Bug: 24342670
Change-Id: Icfb7db0c1b5c6688c16248daa5e6c0443ff45392
parent 84c62dde
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -206,7 +206,9 @@ public class Status extends InstrumentedPreferenceActivity {
        }

        // Remove SimStatus and Imei for Secondary user as it access Phone b/19165700
        if (UserHandle.myUserId() != UserHandle.USER_OWNER) {
        // Also remove on Wi-Fi only devices.
        if (UserHandle.myUserId() != UserHandle.USER_OWNER
                || Utils.isWifiOnly(this)) {
            removePreferenceFromScreen(KEY_SIM_STATUS);
            removePreferenceFromScreen(KEY_IMEI_INFO);
        }