mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 15:05:44 +03:00
Remove unneeded condition
If the call is a voice only call there will be no received video tracks (they would have been stopped when each connection is established), so changing the enabled state has no effect (as the adapter only tries to show the received video if it is available). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
ac4be52b84
commit
a65e56a9ce
1 changed files with 1 additions and 1 deletions
|
@ -2170,7 +2170,7 @@ public class CallActivity extends CallBaseActivity {
|
|||
participantsAdapter.notifyDataSetChanged();
|
||||
}
|
||||
} else if (peerConnectionEvent.getPeerConnectionEventType() ==
|
||||
PeerConnectionEvent.PeerConnectionEventType.VIDEO_CHANGE && !isVoiceOnlyCall) {
|
||||
PeerConnectionEvent.PeerConnectionEventType.VIDEO_CHANGE) {
|
||||
if (participantDisplayItems.get(participantDisplayItemId) != null) {
|
||||
participantDisplayItems.get(participantDisplayItemId).setStreamEnabled(peerConnectionEvent.getChangeValue());
|
||||
participantsAdapter.notifyDataSetChanged();
|
||||
|
|
Loading…
Reference in a new issue