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.

(cherry picked from commit 1c47a6b9b35c622200c731cdbbc076f5263e8d06)
This commit is contained in:
FooIbar 2024-08-14 00:03:10 +08:00 committed by Jobobby04
parent 9d7346157b
commit fc956fc791

View File

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