Add a default behavior setting for VICs
Test: atest Bug: 149696991 Change-Id: Ica06f80a02d65294a7b503fd3556add644c61bd7
This commit is contained in:
@@ -36,13 +36,13 @@ public class BlockPreferenceController extends NotificationPreferenceController
|
||||
implements PreferenceControllerMixin, SwitchBar.OnSwitchChangeListener {
|
||||
|
||||
private static final String KEY_BLOCK = "block";
|
||||
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||
private NotificationSettings.DependentFieldListener mDependentFieldListener;
|
||||
|
||||
public BlockPreferenceController(Context context,
|
||||
NotificationSettings.ImportanceListener importanceListener,
|
||||
NotificationSettings.DependentFieldListener dependentFieldListener,
|
||||
NotificationBackend backend) {
|
||||
super(context, backend);
|
||||
mImportanceListener = importanceListener;
|
||||
mDependentFieldListener = dependentFieldListener;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -124,7 +124,7 @@ public class BlockPreferenceController extends NotificationPreferenceController
|
||||
mAppRow.banned = blocked;
|
||||
mBackend.setNotificationsEnabledForPackage(mAppRow.pkg, mAppRow.uid, !blocked);
|
||||
}
|
||||
mImportanceListener.onImportanceChanged();
|
||||
mDependentFieldListener.onFieldValueChanged();
|
||||
}
|
||||
|
||||
String getSwitchBarText() {
|
||||
|
Reference in New Issue
Block a user