Use | not , am: 78c4e70cf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14534046 Change-Id: I583bb2e74c40bb293f64ccc5662d949a5f919a9d
This commit is contained in:
@@ -152,7 +152,7 @@ public class TypeFilterPreferenceControllerTest {
|
||||
public void updateState_enabled_metaData_disableFilter_notThisField() {
|
||||
mSi.metaData = new Bundle();
|
||||
mSi.metaData.putCharSequence(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES,
|
||||
"1,alerting");
|
||||
"1|alerting");
|
||||
when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true);
|
||||
when(mNm.getListenerFilter(mCn, 0)).thenReturn(new NotificationListenerFilter());
|
||||
CheckBoxPreference pref = new CheckBoxPreference(mContext);
|
||||
@@ -165,7 +165,7 @@ public class TypeFilterPreferenceControllerTest {
|
||||
public void updateState_enabled_metaData_disableFilter_thisField_stateIsChecked() {
|
||||
mSi.metaData = new Bundle();
|
||||
mSi.metaData.putCharSequence(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES,
|
||||
"conversations,2,32");
|
||||
"conversations|2|32");
|
||||
when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true);
|
||||
when(mNm.getListenerFilter(mCn, 0)).thenReturn(
|
||||
new NotificationListenerFilter(32, new ArraySet<>()));
|
||||
@@ -189,7 +189,7 @@ public class TypeFilterPreferenceControllerTest {
|
||||
public void updateState_disabled_metaData_disableFilter_thisField_stateIsNotChecked() {
|
||||
mSi.metaData = new Bundle();
|
||||
mSi.metaData.putCharSequence(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES,
|
||||
"1,2,32");
|
||||
"1|2|32");
|
||||
when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true);
|
||||
NotificationListenerFilter before = new NotificationListenerFilter(4, new ArraySet<>());
|
||||
when(mNm.getListenerFilter(mCn, 0)).thenReturn(before);
|
||||
|
Reference in New Issue
Block a user