Search in sources :

Example 1 with RestrictedItem

use of com.android.settings.notification.RestrictedDropDownPreference.RestrictedItem in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class NotificationSettingsBase method setRestrictedIfNotificationFeaturesDisabled.

private void setRestrictedIfNotificationFeaturesDisabled(CharSequence entry, CharSequence entryValue, int keyguardNotificationFeatures) {
    EnforcedAdmin admin = RestrictedLockUtils.checkIfKeyguardFeaturesDisabled(mContext, keyguardNotificationFeatures, mUserId);
    if (admin != null) {
        RestrictedItem item = new RestrictedItem(entry, entryValue, admin);
        mVisibilityOverride.addRestrictedItem(item);
    }
}
Also used : EnforcedAdmin(com.android.settingslib.RestrictedLockUtils.EnforcedAdmin) RestrictedItem(com.android.settings.notification.RestrictedDropDownPreference.RestrictedItem)

Aggregations

RestrictedItem (com.android.settings.notification.RestrictedDropDownPreference.RestrictedItem)1 EnforcedAdmin (com.android.settingslib.RestrictedLockUtils.EnforcedAdmin)1