Provide Spatializer in BluetoothFeatureProvider for Spatial Audio toggle
BUG: 316490612 Test: atest BluetoothDetailsSpatialAudioControllerTest Change-Id: I7fdb671d5395e08c517af58e88b4aeb48f193e5d
This commit is contained in:
@@ -18,6 +18,9 @@ package com.android.settings.bluetooth;
|
||||
|
||||
import android.bluetooth.BluetoothDevice;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.media.AudioManager;
|
||||
import android.media.Spatializer;
|
||||
import android.net.Uri;
|
||||
|
||||
import com.android.settingslib.bluetooth.BluetoothUtils;
|
||||
@@ -45,4 +48,10 @@ public class BluetoothFeatureProviderImpl implements BluetoothFeatureProvider {
|
||||
public List<ComponentName> getRelatedTools() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Spatializer getSpatializer(Context context) {
|
||||
AudioManager audioManager = context.getSystemService(AudioManager.class);
|
||||
return audioManager.getSpatializer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user