Validate activePeer during Bluetooth and Speaker audio state transitions.

fork-5.53.8
Curt Brune 2020-02-15 10:48:49 -08:00 zatwierdzone przez Greyson Parrelli
rodzic 4ea886d05a
commit 9506da6dd3
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -456,7 +456,9 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
lockManager.updatePhoneState(getInCallPhoneState());
}
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
if (activePeer != null) {
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
}
}
private void handleSetBluetoothAudio(Intent intent) {
@ -475,7 +477,9 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
lockManager.updatePhoneState(getInCallPhoneState());
}
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
if (activePeer != null) {
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
}
}
private void handleSetMuteAudio(Intent intent) {