diff options
author | Jason Monk <jmonk@google.com> | 2015-10-20 02:22:55 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-10-20 02:22:55 +0000 |
commit | 554c3aef41c089d2baf6f2f6894de14e576f6d45 (patch) | |
tree | cfcdf3e46f3bc0355d2445e6d4f344ce52252305 | |
parent | b2568ed0d1ae4cdaabcb061b2a503fece4aaa22a (diff) | |
parent | 2a90c111ee994a0b8d95039b102ab280d6ce9d6b (diff) | |
download | packages_apps_Settings-554c3aef41c089d2baf6f2f6894de14e576f6d45.zip packages_apps_Settings-554c3aef41c089d2baf6f2f6894de14e576f6d45.tar.gz packages_apps_Settings-554c3aef41c089d2baf6f2f6894de14e576f6d45.tar.bz2 |
Hide SIM and IMEI for wifi only devices am: 417a0500c3
am: 2a90c111ee
* commit '2a90c111ee994a0b8d95039b102ab280d6ce9d6b':
Hide SIM and IMEI for wifi only devices
-rw-r--r-- | src/com/android/settings/deviceinfo/Status.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/deviceinfo/Status.java b/src/com/android/settings/deviceinfo/Status.java index b86f9c6..b52a0ad 100644 --- a/src/com/android/settings/deviceinfo/Status.java +++ b/src/com/android/settings/deviceinfo/Status.java @@ -205,8 +205,10 @@ public class Status extends InstrumentedPreferenceActivity { removePreferenceFromScreen(KEY_SERIAL_NUMBER); } - //Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 - if (UserHandle.myUserId() != UserHandle.USER_OWNER) { + // Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 + // Also remove on Wi-Fi only devices. + if (UserHandle.myUserId() != UserHandle.USER_OWNER + || Utils.isWifiOnly(this)) { removePreferenceFromScreen(KEY_SIM_STATUS); removePreferenceFromScreen(KEY_IMEI_INFO); } |