mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
remove unused code
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
51eb7edcb0
commit
1703a34007
@ -2544,35 +2544,12 @@ class CallActivity : CallBaseActivity() {
|
|||||||
runOnUiThread { removeParticipantDisplayItem(sessionId, "video") }
|
runOnUiThread { removeParticipantDisplayItem(sessionId, "video") }
|
||||||
}
|
}
|
||||||
|
|
||||||
// private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) {
|
|
||||||
// Log.d(TAG, "removeParticipantDisplayItem")
|
|
||||||
// val participantDisplayItem = participantDisplayItems!!.remove("$sessionId-$videoStreamType") ?: return
|
|
||||||
// participantDisplayItem.destroy()
|
|
||||||
// if (!isDestroyed) {
|
|
||||||
// initGridAdapter()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) {
|
|
||||||
// val key = "$sessionId-$videoStreamType"
|
|
||||||
//
|
|
||||||
// val participant = participantItems.find { it.sessionKey == key }
|
|
||||||
// participant?.destroy()
|
|
||||||
// participantItems.remove(participant)
|
|
||||||
//
|
|
||||||
// initGrid()
|
|
||||||
// }
|
|
||||||
|
|
||||||
private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) {
|
private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) {
|
||||||
val key = "$sessionId-$videoStreamType"
|
val key = "$sessionId-$videoStreamType"
|
||||||
|
|
||||||
val participant = participantItems.find { it.sessionKey == key }
|
val participant = participantItems.find { it.sessionKey == key }
|
||||||
participant?.destroy()
|
participant?.destroy()
|
||||||
participantItems.removeAll { it.sessionKey == key }
|
participantItems.removeAll { it.sessionKey == key }
|
||||||
|
|
||||||
// Also remove UI state
|
|
||||||
participantUiStates.removeAll { it.sessionKey == key }
|
participantUiStates.removeAll { it.sessionKey == key }
|
||||||
|
|
||||||
initGrid()
|
initGrid()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user