Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/talk-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/com/nextcloud/talk/activities/CallActivity.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java
index ecdefcfae..01e339d28 100644
--- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java
+++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java
@@ -2087,8 +2087,9 @@ public class CallActivity extends CallBaseActivity {
if (!(peerConnectionWrappers = getPeerConnectionWrapperListForSessionId(sessionId)).isEmpty()) {
for (PeerConnectionWrapper peerConnectionWrapper : peerConnectionWrappers) {
if (peerConnectionWrapper.getSessionId().equals(sessionId)) {
- if (VIDEO_STREAM_TYPE_SCREEN.equals(peerConnectionWrapper.getVideoStreamType()) || !justScreen) {
- runOnUiThread(() -> removeMediaStream(sessionId));
+ String videoStreamType = peerConnectionWrapper.getVideoStreamType();
+ if (VIDEO_STREAM_TYPE_SCREEN.equals(videoStreamType) || !justScreen) {
+ runOnUiThread(() -> removeMediaStream(sessionId, videoStreamType));
deletePeerConnection(peerConnectionWrapper);
}
}
@@ -2096,9 +2097,9 @@ public class CallActivity extends CallBaseActivity {
}
}
- private void removeMediaStream(String sessionId) {
+ private void removeMediaStream(String sessionId, String videoStreamType) {
Log.d(TAG, "removeMediaStream");
- participantDisplayItems.remove(sessionId);
+ participantDisplayItems.remove(sessionId + "-" + videoStreamType);
if (!isDestroyed()) {
initGridAdapter();
@@ -2409,7 +2410,7 @@ public class CallActivity extends CallBaseActivity {
videoStreamType,
videoStreamEnabled,
rootEglBase);
- participantDisplayItems.put(session, participantDisplayItem);
+ participantDisplayItems.put(session + "-" + videoStreamType, participantDisplayItem);
initGridAdapter();
}