Non-blockable whitelist should only control importance fields
Sounds, etc. should still be modifiable Test: robotests Fixes: 130086523 Change-Id: I1a95a73b299bb3afd169b249a3dabae3583a448a
This commit is contained in:
@@ -61,8 +61,8 @@ public class MinImportancePreferenceController extends NotificationPreferenceCon
|
||||
|
||||
@Override
|
||||
public void updateState(Preference preference) {
|
||||
if (mAppRow!= null && mChannel != null) {
|
||||
preference.setEnabled(mAdmin == null && isChannelConfigurable());
|
||||
if (mAppRow != null && mChannel != null) {
|
||||
preference.setEnabled(mAdmin == null && isChannelBlockable());
|
||||
|
||||
RestrictedSwitchPreference pref = (RestrictedSwitchPreference) preference;
|
||||
pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN);
|
||||
|
Reference in New Issue
Block a user