1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-09-19 03:08:46 +02:00

Add comment about RecyclerView cache size ()

Note for forks: Increasing cache size may cause OOM on API < 26, better
to make it API 26+ only.
This commit is contained in:
FooIbar
2024-08-14 00:03:10 +08:00
committed by GitHub
parent f4348df870
commit 1c47a6b9b3

@@ -361,4 +361,5 @@ class WebtoonViewer(val activity: ReaderActivity, val isContinuous: Boolean = tr
} }
} }
// Double the cache size to reduce rebinds/recycles incurred by the extra layout space on scroll direction changes
private const val RecyclerViewCacheSize = 4 private const val RecyclerViewCacheSize = 4