mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Bolster Bluetooth headset detection for Android 11 and older.
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user