mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 10:45:13 +01:00
Replace concrete implementation with interface
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
e4e9a51889
commit
faf25f8071
@ -59,8 +59,8 @@ import java.io.IOException;
|
|||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
@ -364,9 +364,9 @@ public class PeerConnectionWrapper {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (dataChannelMessage.getPayload() != null) {
|
if (dataChannelMessage.getPayload() != null) {
|
||||||
HashMap<String, String> payloadHashMap = (HashMap<String, String>) dataChannelMessage.getPayload();
|
Map<String, String> payloadMap = (Map<String, String>) dataChannelMessage.getPayload();
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||||
.NICK_CHANGE, sessionId, payloadHashMap.get("name"), null, videoStreamType));
|
.NICK_CHANGE, sessionId, payloadMap.get("name"), null, videoStreamType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ("audioOn".equals(dataChannelMessage.getType())) {
|
} else if ("audioOn".equals(dataChannelMessage.getType())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user