mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Rename methods to add and remove ParticipantDisplayItems
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
5681084a14
commit
e17a999812
@ -1999,7 +1999,7 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
final CallParticipantModel callParticipantModel = callParticipant.getCallParticipantModel();
|
final CallParticipantModel callParticipantModel = callParticipant.getCallParticipantModel();
|
||||||
|
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
setupVideoStreamForLayout(callParticipantModel, type);
|
addParticipantDisplayItem(callParticipantModel, type);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2032,7 +2032,7 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
PeerConnectionWrapper.PeerConnectionObserver peerConnectionObserver = peerConnectionObservers.remove(sessionId + "-" + videoStreamType);
|
PeerConnectionWrapper.PeerConnectionObserver peerConnectionObserver = peerConnectionObservers.remove(sessionId + "-" + videoStreamType);
|
||||||
peerConnectionWrapper.removeObserver(peerConnectionObserver);
|
peerConnectionWrapper.removeObserver(peerConnectionObserver);
|
||||||
|
|
||||||
runOnUiThread(() -> removeMediaStream(sessionId, videoStreamType));
|
runOnUiThread(() -> removeParticipantDisplayItem(sessionId, videoStreamType));
|
||||||
|
|
||||||
CallParticipant callParticipant = callParticipants.get(sessionId);
|
CallParticipant callParticipant = callParticipants.get(sessionId);
|
||||||
if (callParticipant != null) {
|
if (callParticipant != null) {
|
||||||
@ -2066,8 +2066,8 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void removeMediaStream(String sessionId, String videoStreamType) {
|
private void removeParticipantDisplayItem(String sessionId, String videoStreamType) {
|
||||||
Log.d(TAG, "removeMediaStream");
|
Log.d(TAG, "removeParticipantDisplayItem");
|
||||||
ParticipantDisplayItem participantDisplayItem = participantDisplayItems.remove(sessionId + "-" + videoStreamType);
|
ParticipantDisplayItem participantDisplayItem = participantDisplayItems.remove(sessionId + "-" + videoStreamType);
|
||||||
if (participantDisplayItem == null) {
|
if (participantDisplayItem == null) {
|
||||||
return;
|
return;
|
||||||
@ -2200,7 +2200,7 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
this);
|
this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupVideoStreamForLayout(CallParticipantModel callParticipantModel, String videoStreamType) {
|
private void addParticipantDisplayItem(CallParticipantModel callParticipantModel, String videoStreamType) {
|
||||||
String defaultGuestNick = getResources().getString(R.string.nc_nick_guest);
|
String defaultGuestNick = getResources().getString(R.string.nc_nick_guest);
|
||||||
|
|
||||||
ParticipantDisplayItem participantDisplayItem = new ParticipantDisplayItem(baseUrl,
|
ParticipantDisplayItem participantDisplayItem = new ParticipantDisplayItem(baseUrl,
|
||||||
|
Loading…
Reference in New Issue
Block a user