packages/apps/Settings
Revisão | 417a0500c3d7e14013751dbe62791487b033ee72 (tree) |
---|---|
Hora | 2015-10-20 09:02:11 |
Autor | Jason Monk <jmonk@goog...> |
Commiter | Jason Monk |
Hide SIM and IMEI for wifi only devices
Bug: 24342670
Change-Id: Icfb7db0c1b5c6688c16248daa5e6c0443ff45392
@@ -205,8 +205,10 @@ public class Status extends InstrumentedPreferenceActivity { | ||
205 | 205 | removePreferenceFromScreen(KEY_SERIAL_NUMBER); |
206 | 206 | } |
207 | 207 | |
208 | - //Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 | |
209 | - if (UserHandle.myUserId() != UserHandle.USER_OWNER) { | |
208 | + // Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 | |
209 | + // Also remove on Wi-Fi only devices. | |
210 | + if (UserHandle.myUserId() != UserHandle.USER_OWNER | |
211 | + || Utils.isWifiOnly(this)) { | |
210 | 212 | removePreferenceFromScreen(KEY_SIM_STATUS); |
211 | 213 | removePreferenceFromScreen(KEY_IMEI_INFO); |
212 | 214 | } |