mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Rename method to a more consistent name with its sibling method
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
c769ff0fd0
commit
a8045880f9
@ -1825,7 +1825,7 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
peerConnectionWrapperList.remove(peerConnectionWrapper);
|
peerConnectionWrapperList.remove(peerConnectionWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
private PeerConnectionWrapper getPeerConnectionWrapperForSessionId(String sessionId, String type) {
|
private PeerConnectionWrapper getPeerConnectionWrapperForSessionIdAndType(String sessionId, String type) {
|
||||||
for (int i = 0; i < peerConnectionWrapperList.size(); i++) {
|
for (int i = 0; i < peerConnectionWrapperList.size(); i++) {
|
||||||
if (peerConnectionWrapperList.get(i).getSessionId().equals(sessionId)
|
if (peerConnectionWrapperList.get(i).getSessionId().equals(sessionId)
|
||||||
&& peerConnectionWrapperList.get(i).getVideoStreamType().equals(type)) {
|
&& peerConnectionWrapperList.get(i).getVideoStreamType().equals(type)) {
|
||||||
@ -1840,7 +1840,7 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
String type,
|
String type,
|
||||||
boolean publisher) {
|
boolean publisher) {
|
||||||
PeerConnectionWrapper peerConnectionWrapper;
|
PeerConnectionWrapper peerConnectionWrapper;
|
||||||
if ((peerConnectionWrapper = getPeerConnectionWrapperForSessionId(sessionId, type)) != null) {
|
if ((peerConnectionWrapper = getPeerConnectionWrapperForSessionIdAndType(sessionId, type)) != null) {
|
||||||
return peerConnectionWrapper;
|
return peerConnectionWrapper;
|
||||||
} else {
|
} else {
|
||||||
if (hasMCU && publisher) {
|
if (hasMCU && publisher) {
|
||||||
|
Loading…
Reference in New Issue
Block a user