mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +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() {
|
||||
|
||||
if (!canPublishAudioStream) {
|
||||
microphoneOn = false;
|
||||
binding.microphoneButton.getHierarchy().setPlaceholderImage(R.drawable.ic_mic_off_white_24px);
|
||||
toggleMedia(false, false);
|
||||
}
|
||||
|
||||
if (isVoiceOnlyCall && !isConnectionEstablished()) {
|
||||
fetchSignalingSettings();
|
||||
}
|
||||
|
||||
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
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user