From e17a999812e91ce74bb1c6c77ec345d2279ba312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Sun, 27 Nov 2022 21:58:49 +0100 Subject: [PATCH] Rename methods to add and remove ParticipantDisplayItems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- .../com/nextcloud/talk/activities/CallActivity.java | 10 +++++----- 1 file changed, 5 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 93152fdf3..029aaf29d 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java @@ -1999,7 +1999,7 @@ public class CallActivity extends CallBaseActivity { final CallParticipantModel callParticipantModel = callParticipant.getCallParticipantModel(); runOnUiThread(() -> { - setupVideoStreamForLayout(callParticipantModel, type); + addParticipantDisplayItem(callParticipantModel, type); }); } @@ -2032,7 +2032,7 @@ public class CallActivity extends CallBaseActivity { PeerConnectionWrapper.PeerConnectionObserver peerConnectionObserver = peerConnectionObservers.remove(sessionId + "-" + videoStreamType); peerConnectionWrapper.removeObserver(peerConnectionObserver); - runOnUiThread(() -> removeMediaStream(sessionId, videoStreamType)); + runOnUiThread(() -> removeParticipantDisplayItem(sessionId, videoStreamType)); CallParticipant callParticipant = callParticipants.get(sessionId); if (callParticipant != null) { @@ -2066,8 +2066,8 @@ public class CallActivity extends CallBaseActivity { } } - private void removeMediaStream(String sessionId, String videoStreamType) { - Log.d(TAG, "removeMediaStream"); + private void removeParticipantDisplayItem(String sessionId, String videoStreamType) { + Log.d(TAG, "removeParticipantDisplayItem"); ParticipantDisplayItem participantDisplayItem = participantDisplayItems.remove(sessionId + "-" + videoStreamType); if (participantDisplayItem == null) { return; @@ -2200,7 +2200,7 @@ public class CallActivity extends CallBaseActivity { this); } - private void setupVideoStreamForLayout(CallParticipantModel callParticipantModel, String videoStreamType) { + private void addParticipantDisplayItem(CallParticipantModel callParticipantModel, String videoStreamType) { String defaultGuestNick = getResources().getString(R.string.nc_nick_guest); ParticipantDisplayItem participantDisplayItem = new ParticipantDisplayItem(baseUrl,