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:
@@ -62,7 +62,7 @@ public class AllowSoundPreferenceController extends NotificationPreferenceContro
|
||||
if (mChannel != null) {
|
||||
RestrictedSwitchPreference pref = (RestrictedSwitchPreference) preference;
|
||||
pref.setDisabledByAdmin(mAdmin);
|
||||
pref.setEnabled(isChannelConfigurable() && !pref.isDisabledByAdmin());
|
||||
pref.setEnabled(!pref.isDisabledByAdmin());
|
||||
pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT
|
||||
|| mChannel.getImportance() == IMPORTANCE_UNSPECIFIED);
|
||||
} else { Log.i(TAG, "tried to updatestate on a null channel?!"); }
|
||||
|
||||
Reference in New Issue
Block a user