Silent notifs appear on lockscreen by default
Test: atest Bug: 134613164 Change-Id: I1ee39a1302010a2a29ba6d0060f19565e41859a2
This commit is contained in:
@@ -132,6 +132,18 @@ public class ShowOnLockscreenNotificationPreferenceControllerTest {
|
||||
.isEqualTo(mContext.getString(R.string.lock_screen_notifs_show_all));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateState_allNotifsOnLockscreen_isDefault() {
|
||||
// settings don't exist
|
||||
|
||||
mController.updateState(mPreference);
|
||||
|
||||
assertThat(mPreference.getValue()).isEqualTo(
|
||||
String.valueOf(R.string.lock_screen_notifs_show_all));
|
||||
assertThat(mPreference.getSummary())
|
||||
.isEqualTo(mContext.getString(R.string.lock_screen_notifs_show_all));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateState_dpmSaysNo() {
|
||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
||||
|
Reference in New Issue
Block a user