Fix bug #13758772 Crash when hitting back after clicking on add a restricted...

... profile under Users

- no need to show the dialog again when we have pressed on BACK

Change-Id: I76f155a488512689c5af40ff35b80ce034da4ffe
This commit is contained in:
Fabrice Di Meglio
2014-04-04 11:32:28 -07:00
parent 45d3c5130f
commit 7f111811e0

View File

@@ -314,8 +314,6 @@ public class UserSettings extends RestrictedSettingsFragment
if (requestCode == REQUEST_CHOOSE_LOCK) { if (requestCode == REQUEST_CHOOSE_LOCK) {
if (resultCode != Activity.RESULT_CANCELED && hasLockscreenSecurity()) { if (resultCode != Activity.RESULT_CANCELED && hasLockscreenSecurity()) {
addUserNow(USER_TYPE_RESTRICTED_PROFILE); addUserNow(USER_TYPE_RESTRICTED_PROFILE);
} else {
showDialog(DIALOG_NEED_LOCKSCREEN);
} }
} }
} }