mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 13:35:33 +03: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
1 changed files with 6 additions and 2 deletions
|
@ -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 a new issue