mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Call toggle media before fetchSignalingSettings
This change fix a lateinit excepttion for 'participantPermissions'. Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
4c0aa6a235
commit
f880b4f778
@ -914,13 +914,17 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
|
|
||||||
public void onMicrophoneClick() {
|
public void onMicrophoneClick() {
|
||||||
|
|
||||||
|
if (!canPublishAudioStream) {
|
||||||
|
microphoneOn = false;
|
||||||
|
binding.microphoneButton.getHierarchy().setPlaceholderImage(R.drawable.ic_mic_off_white_24px);
|
||||||
|
toggleMedia(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (isVoiceOnlyCall && !isConnectionEstablished()) {
|
if (isVoiceOnlyCall && !isConnectionEstablished()) {
|
||||||
fetchSignalingSettings();
|
fetchSignalingSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!canPublishAudioStream) {
|
if (!canPublishAudioStream) {
|
||||||
microphoneOn = false;
|
|
||||||
binding.microphoneButton.getHierarchy().setPlaceholderImage(R.drawable.ic_mic_off_white_24px);
|
|
||||||
// In the case no audio stream will be published it's not needed to check microphone permissions
|
// In the case no audio stream will be published it's not needed to check microphone permissions
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user