Merge "Allow user to hide sensitive notifications with no work challenge" into nyc-dev am: 9f4ad67
am: 957ec6a
* commit '957ec6aee4ad8dfbde5cedb9791effdce1ca9825':
Allow user to hide sensitive notifications with no work challenge
Change-Id: I999f240c0112abb9b366017e7def431a2c3dae79
This commit is contained in:
@@ -75,9 +75,14 @@ public class ConfigureNotificationSettings extends SettingsPreferenceFragment {
|
||||
mContext = getActivity();
|
||||
mProfileChallengeUserId = Utils.getManagedProfileId(
|
||||
UserManager.get(mContext), UserHandle.myUserId());
|
||||
mSecure = new LockPatternUtils(getActivity()).isSecure(UserHandle.myUserId());
|
||||
|
||||
final LockPatternUtils utils = new LockPatternUtils(getActivity());
|
||||
final boolean isUnified =
|
||||
!utils.isSeparateProfileChallengeEnabled(mProfileChallengeUserId);
|
||||
|
||||
mSecure = utils.isSecure(UserHandle.myUserId());
|
||||
mSecureProfile = (mProfileChallengeUserId != UserHandle.USER_NULL)
|
||||
&& new LockPatternUtils(getActivity()).isSecure(mProfileChallengeUserId);
|
||||
&& (utils.isSecure(mProfileChallengeUserId) || (isUnified && mSecure));
|
||||
|
||||
addPreferencesFromResource(R.xml.configure_notification_settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user