Merge "DO NOT MERGE Clear deprecated effects when saving zen policy" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9110d29f13
@@ -150,18 +150,4 @@ public class ZenModeVisEffectsCustomPreferenceControllerTest {
|
||||
verify(mockPref).setOnGearClickListener(any());
|
||||
verify(mockPref).setOnRadioButtonClickListener(any());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void select() {
|
||||
int interruptiveSuppressed = SUPPRESSED_EFFECT_FULL_SCREEN_INTENT
|
||||
| SUPPRESSED_EFFECT_AMBIENT
|
||||
| SUPPRESSED_EFFECT_LIGHTS
|
||||
| SUPPRESSED_EFFECT_PEEK;
|
||||
mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1);
|
||||
mController.select();
|
||||
verify(mBackend).savePolicy(anyInt(), anyInt(), anyInt(), eq(interruptiveSuppressed));
|
||||
verify(mFeatureFactory.metricsFeatureProvider).action(eq(mContext),
|
||||
eq(ACTION_ZEN_CUSTOM),
|
||||
eq(true));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user