Bolster Bluetooth headset detection for Android 11 and older.

This commit is contained in:
Nicholas Tinsley
2023-05-30 15:00:49 -04:00
parent 05edc715ef
commit 83e84228f5
2 changed files with 10 additions and 3 deletions

View File

@@ -3282,7 +3282,7 @@ public class ConversationParentFragment extends Fragment
@Override
public void onRecorderStarted() {
final AudioManagerCompat audioManager = ApplicationDependencies.getAndroidCallAudioManager();
if (audioManager.isBluetoothAvailable()) {
if (audioManager.isBluetoothHeadsetAvailable()) {
connectToBluetoothAndBeginRecording();
} else {
Log.d(TAG, "Recording from phone mic because no bluetooth devices were available.");