Merge "Identify cast mode properly in audio switch" into pi-dev am: 16f00964a8

am: 953af4ed8c

Change-Id: I6fad4cf0fa1a07b9c3ac34370dc2c320bdcc2196
This commit is contained in:
ryanywlin
2018-04-17 18:20:34 -07:00
committed by android-build-merger
2 changed files with 6 additions and 14 deletions

View File

@@ -17,6 +17,7 @@
package com.android.settings.sound;
import static android.media.AudioSystem.DEVICE_OUT_REMOTE_SUBMIX;
import static android.media.AudioSystem.DEVICE_OUT_USB_HEADSET;
import static com.google.common.truth.Truth.assertThat;
@@ -198,7 +199,7 @@ public class MediaOutputPreferenceControllerTest {
*/
@Test
public void updateState_mediaStreamIsCapturedByCast_shouldDisableAndSetDefaultSummary() {
mShadowAudioManager.setMusicActiveRemotely(true);
mShadowAudioManager.setStream(DEVICE_OUT_REMOTE_SUBMIX);
mController.updateState(mPreference);