Update style of main media setting toggle

Bug: 183347608
Test: visual
Test: atest MediaControlsPreferenceControllerTest
Change-Id: I0a882b769af93914ff01e428f9c07d3ab22cc36a
This commit is contained in:
Beth Thibodeau
2021-03-25 18:40:16 -04:00
parent 383ae7f025
commit 643eb42323
3 changed files with 31 additions and 13 deletions

View File

@@ -76,7 +76,7 @@ public class MediaControlsPreferenceControllerTest {
assertThat(mController.isChecked()).isTrue();
mController.setChecked(false);
mController.onSwitchChanged(null /* switchView */, false);
assertThat(Settings.Secure.getInt(mContentResolver,
Settings.Secure.MEDIA_CONTROLS_RESUME, -1)).isEqualTo(0);
@@ -89,7 +89,7 @@ public class MediaControlsPreferenceControllerTest {
assertThat(mController.isChecked()).isFalse();
mController.setChecked(true);
mController.onSwitchChanged(null /* switchView */, true);
assertThat(Settings.Secure.getInt(mContentResolver,
Settings.Secure.MEDIA_CONTROLS_RESUME, -1)).isEqualTo(1);