Use Spatializer in overlay for new device details page
BUG: 343317785 Test: local tested Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I6c80fac5e74902dd746262e555eb0a5a2e865718
This commit is contained in:
@@ -54,7 +54,7 @@ open class BluetoothFeatureProviderImpl : BluetoothFeatureProvider {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getSpatializer(context: Context): Spatializer? {
|
override fun getSpatializer(context: Context): Spatializer {
|
||||||
val audioManager = context.getSystemService(AudioManager::class.java)
|
val audioManager = context.getSystemService(AudioManager::class.java)
|
||||||
return audioManager.spatializer
|
return audioManager.spatializer
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,7 @@ open class BluetoothFeatureProviderImpl : BluetoothFeatureProvider {
|
|||||||
context, audioManager,
|
context, audioManager,
|
||||||
SpatializerInteractor(
|
SpatializerInteractor(
|
||||||
SpatializerRepositoryImpl(
|
SpatializerRepositoryImpl(
|
||||||
audioManager.spatializer,
|
getSpatializer(context),
|
||||||
Dispatchers.IO
|
Dispatchers.IO
|
||||||
)
|
)
|
||||||
), scope, Dispatchers.IO)
|
), scope, Dispatchers.IO)
|
||||||
|
Reference in New Issue
Block a user