We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b48b5 commit 6d98c98Copy full SHA for 6d98c98
1 file changed
app/src/main/java/com/github/libretube/util/DeArrowUtil.kt
@@ -12,9 +12,7 @@ private data class CacheObject(val value: DeArrowContent?);
12
13
object DeArrowUtil {
14
// we cannot use segment data directly, as LruCache expects non-null objects, but we also want to cache unlabeled videos
15
- private val memoryCache = object : LruCache<String, CacheObject?>(256) {
16
- override fun sizeOf(key: String, value: CacheObject?): Int = 1
17
- }
+ private val memoryCache = LruCache<String, CacheObject?>(256)
18
19
private fun extractTitleAndThumbnail(content: DeArrowContent): Pair<String?, String?> {
20
val title = content.titles.firstOrNull { it.votes >= 0 || it.locked }?.title
0 commit comments