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

Commit 554c3aef authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Hide SIM and IMEI for wifi only devices am: 417a0500

am: 2a90c111

* commit '2a90c111':
  Hide SIM and IMEI for wifi only devices
parents b2568ed0 2a90c111
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);
        }