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

am: f58cd0fb51

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