Merge "Override device lock pattern visibility when unifying" into nyc-dev

This commit is contained in:
Daniel U
2016-03-29 09:34:05 +00:00
committed by Android (Google) Code Review

View File

@@ -684,6 +684,9 @@ public class SecuritySettings extends SettingsPreferenceFragment
mCurrentProfilePassword, mCurrentDevicePassword,
profileQuality, MY_USER_ID);
}
final boolean profilePatternVisibility =
mLockPatternUtils.isVisiblePatternEnabled(mProfileChallengeUserId);
mLockPatternUtils.setVisiblePatternEnabled(profilePatternVisibility, MY_USER_ID);
mCurrentDevicePassword = null;
mCurrentProfilePassword = null;
}