Merge "Silent notifs appear on lockscreen by default" into qt-dev am: f58cd0fb51 am: 520a48070f

am: acee80f8fe

Change-Id: I97ee10e986b760593aaa5da43932be82c400aa74
This commit is contained in:
Julia Reynolds
2019-06-06 12:09:23 -07:00
committed by android-build-merger
6 changed files with 18 additions and 6 deletions

View File

@@ -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(),