Don't do the developer options countdown for secondary users.
Bug: 7469031 Change-Id: I794cb8b67a9221cc4fcd2dd6208777648c818fe0
This commit is contained in:
@@ -174,6 +174,9 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment {
|
||||
}
|
||||
}
|
||||
} else if (preference.getKey().equals(KEY_BUILD_NUMBER)) {
|
||||
// Don't enable developer options for secondary users.
|
||||
if (UserHandle.myUserId() != UserHandle.USER_OWNER) return true;
|
||||
|
||||
if (mDevHitCountdown > 0) {
|
||||
mDevHitCountdown--;
|
||||
if (mDevHitCountdown == 0) {
|
||||
|
Reference in New Issue
Block a user