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

am: 520a48070f

Change-Id: I66b0830dc86ee78e97541be0e4ab412eeb2457e5
This commit is contained in:
Julia Reynolds
2019-06-06 12:03:55 -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(),