Add comment about RecyclerView cache size (#1119)

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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