diff options
Diffstat (limited to 'src/com/android/settings/CryptKeeperConfirm.java')
-rw-r--r-- | src/com/android/settings/CryptKeeperConfirm.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/CryptKeeperConfirm.java b/src/com/android/settings/CryptKeeperConfirm.java index 77a1c4563..513a42871 100644 --- a/src/com/android/settings/CryptKeeperConfirm.java +++ b/src/com/android/settings/CryptKeeperConfirm.java @@ -120,8 +120,10 @@ public class CryptKeeperConfirm extends InstrumentedFragment { // 1. The owner info. LockPatternUtils utils = new LockPatternUtils(getActivity()); - utils.setVisiblePatternEnabled(utils.isVisiblePatternEnabled()); - if (utils.isOwnerInfoEnabled()) { + utils.setVisiblePatternEnabled( + utils.isVisiblePatternEnabled(UserHandle.USER_OWNER), + UserHandle.USER_OWNER); + if (utils.isOwnerInfoEnabled(UserHandle.USER_OWNER)) { utils.setOwnerInfo(utils.getOwnerInfo(UserHandle.USER_OWNER), UserHandle.USER_OWNER); } |