1
0
Fork 0
mirror of https://github.com/DrKLO/Telegram.git synced 2025-01-13 21:23:57 +01:00

fix:The pad is connected to the Bluetooth headset, but sco cannot be established.

This commit is contained in:
taocan 2024-05-23 15:39:51 +08:00
parent d494ea8cb5
commit b155eef785

View file

@ -2740,7 +2740,7 @@ public class VoIPService extends Service implements SensorEventListener, AudioMa
}
public void toggleSpeakerphoneOrShowRouteSheet(Context context, boolean fromOverlayWindow, Integer selectedPos) {
if (isBluetoothHeadsetConnected() && hasEarpiece()) {
if (isBluetoothHeadsetConnected()) {
BottomSheet.Builder builder = new BottomSheet.Builder(context)
.setTitle(LocaleController.getString("VoipOutputDevices", R.string.VoipOutputDevices), true)
.selectedPos(selectedPos)