Merge "Fix error prone build with spatial audio settings test" into sc-v2-dev am: eb79498e0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15879873 Change-Id: I370713e27fa23a14125a5dff842b7483fe70aefb
This commit is contained in:
@@ -56,7 +56,7 @@ public class SpatialAudioPreferenceControllerTest {
|
||||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mContext = spy(RuntimeEnvironment.application);
|
||||
when(mContext.getSystemService(AudioManager.class)).thenReturn(mAudioManager);
|
||||
when((Object) mContext.getSystemService(AudioManager.class)).thenReturn(mAudioManager);
|
||||
when(mAudioManager.getSpatializer()).thenReturn(mSpatializer);
|
||||
mController = new SpatialAudioPreferenceController(mContext);
|
||||
}
|
||||
|
Reference in New Issue
Block a user