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:
@@ -59,9 +59,9 @@ public class ImportancePreferenceController extends NotificationPreferenceContro
|
||||
@Override
|
||||
public void updateState(Preference preference) {
|
||||
if (mAppRow!= null && mChannel != null) {
|
||||
preference.setEnabled(mAdmin == null && isChannelConfigurable());
|
||||
preference.setEnabled(mAdmin == null && isChannelBlockable());
|
||||
ImportancePreference pref = (ImportancePreference) preference;
|
||||
pref.setConfigurable(isChannelConfigurable());
|
||||
pref.setConfigurable(isChannelBlockable());
|
||||
pref.setImportance(mChannel.getImportance());
|
||||
pref.setDisplayInStatusBar(mBackend.showSilentInStatusBar(mContext.getPackageName()));
|
||||
// TODO: b/128445911 pass along lock screen setting
|
||||
|
Reference in New Issue
Block a user