Merge "Silent notifs appear on lockscreen by default" into qt-dev
am: f58cd0fb51
Change-Id: I446708aba61c268375257280341a1ff5b33aa81d
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