remove unused code

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2025-05-07 15:23:39 +02:00
parent 51eb7edcb0
commit 1703a34007
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -2544,35 +2544,12 @@ class CallActivity : CallBaseActivity() {
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) {
val key = "$sessionId-$videoStreamType"
val participant = participantItems.find { it.sessionKey == key }
participant?.destroy()
participantItems.removeAll { it.sessionKey == key }
// Also remove UI state
participantUiStates.removeAll { it.sessionKey == key }
initGrid()
}