|
12 | 12 | import static android.os.UserManager.DISALLOW_CONFIG_CELL_BROADCASTS;
|
13 | 13 | import static android.os.UserManager.DISALLOW_CONFIG_CREDENTIALS;
|
14 | 14 | import static android.os.UserManager.DISALLOW_CONFIG_DATE_TIME;
|
15 |
| -import static android.os.UserManager.DISALLOW_CONFIG_LOCATION_MODE; |
16 | 15 | import static android.os.UserManager.DISALLOW_AIRPLANE_MODE;
|
17 | 16 | import static android.os.UserManager.DISALLOW_CONFIG_BRIGHTNESS;
|
18 | 17 | import static android.os.UserManager.DISALLOW_CONFIG_SCREEN_TIMEOUT;
|
|
52 | 51 | public class UserRestriction {
|
53 | 52 | // TODO: remove it once available in SDK
|
54 | 53 | public static final String DISALLOW_UNIFIED_PASSWORD = "no_unified_password";
|
| 54 | + public static final String DISALLOW_CONFIG_LOCATION = "no_config_location"; |
55 | 55 |
|
56 | 56 | public String key;
|
57 | 57 | public int titleResId;
|
@@ -178,8 +178,8 @@ public UserRestriction(String key, int titleResId) {
|
178 | 178 | new UserRestriction(DISALLOW_UNIFIED_PASSWORD, R.string.disallow_unified_password),
|
179 | 179 | new UserRestriction(DISALLOW_USER_SWITCH, R.string.disallow_user_switch),
|
180 | 180 | new UserRestriction(
|
181 |
| - DISALLOW_CONFIG_LOCATION_MODE, |
182 |
| - R.string.disallow_config_location_mode), |
| 181 | + DISALLOW_CONFIG_LOCATION, |
| 182 | + R.string.disallow_config_location), |
183 | 183 | new UserRestriction(
|
184 | 184 | DISALLOW_AIRPLANE_MODE,
|
185 | 185 | R.string.disallow_airplane_mode),
|
@@ -285,7 +285,7 @@ public UserRestriction(String key, int titleResId) {
|
285 | 285 | DISALLOW_UNIFIED_PASSWORD,
|
286 | 286 | DISALLOW_SYSTEM_ERROR_DIALOGS,
|
287 | 287 | DISALLOW_USER_SWITCH,
|
288 |
| - DISALLOW_CONFIG_LOCATION_MODE, |
| 288 | + DISALLOW_CONFIG_LOCATION, |
289 | 289 | DISALLOW_AIRPLANE_MODE,
|
290 | 290 | DISALLOW_CONFIG_DATE_TIME,
|
291 | 291 | DISALLOW_CONFIG_BRIGHTNESS,
|
|
0 commit comments