Keeps cache size in 10 to account for recompositions

This commit is contained in:
Vitor Pamplona
2024-03-15 19:26:34 -04:00
parent fbf4f6dd08
commit 1b9742597a
@@ -46,7 +46,7 @@ class MultiPlayerPlaybackManager(
private val playingMap = mutableMapOf<String, MediaSession>() private val playingMap = mutableMapOf<String, MediaSession>()
private val cache = private val cache =
object : LruCache<String, MediaSession>(4) { // up to 4 videos in the screen at the same time object : LruCache<String, MediaSession>(10) { // up to 10 videos in the screen at the same time
override fun entryRemoved( override fun entryRemoved(
evicted: Boolean, evicted: Boolean,
key: String?, key: String?,