mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 17:38:34 +00:00
Validate activePeer during Bluetooth and Speaker audio state transitions.
This commit is contained in:
parent
4ea886d05a
commit
9506da6dd3
@ -456,8 +456,10 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
|||||||
lockManager.updatePhoneState(getInCallPhoneState());
|
lockManager.updatePhoneState(getInCallPhoneState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (activePeer != null) {
|
||||||
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
|
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void handleSetBluetoothAudio(Intent intent) {
|
private void handleSetBluetoothAudio(Intent intent) {
|
||||||
boolean isBluetooth = intent.getBooleanExtra(EXTRA_BLUETOOTH, false);
|
boolean isBluetooth = intent.getBooleanExtra(EXTRA_BLUETOOTH, false);
|
||||||
@ -475,8 +477,10 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
|||||||
lockManager.updatePhoneState(getInCallPhoneState());
|
lockManager.updatePhoneState(getInCallPhoneState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (activePeer != null) {
|
||||||
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
|
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void handleSetMuteAudio(Intent intent) {
|
private void handleSetMuteAudio(Intent intent) {
|
||||||
boolean muted = intent.getBooleanExtra(EXTRA_MUTE, false);
|
boolean muted = intent.getBooleanExtra(EXTRA_MUTE, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user