From 4b04b5e2d49dac94dc8494ac06f2e855680020fe Mon Sep 17 00:00:00 2001 From: Haijie Hong Date: Tue, 27 Aug 2024 13:24:42 +0800 Subject: [PATCH] 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 --- .../settings/bluetooth/BluetoothFeatureProviderImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothFeatureProviderImpl.kt b/src/com/android/settings/bluetooth/BluetoothFeatureProviderImpl.kt index 3a549c6b2de..42287333f12 100644 --- a/src/com/android/settings/bluetooth/BluetoothFeatureProviderImpl.kt +++ b/src/com/android/settings/bluetooth/BluetoothFeatureProviderImpl.kt @@ -54,7 +54,7 @@ open class BluetoothFeatureProviderImpl : BluetoothFeatureProvider { return null } - override fun getSpatializer(context: Context): Spatializer? { + override fun getSpatializer(context: Context): Spatializer { val audioManager = context.getSystemService(AudioManager::class.java) return audioManager.spatializer } @@ -89,7 +89,7 @@ open class BluetoothFeatureProviderImpl : BluetoothFeatureProvider { context, audioManager, SpatializerInteractor( SpatializerRepositoryImpl( - audioManager.spatializer, + getSpatializer(context), Dispatchers.IO ) ), scope, Dispatchers.IO)