mirror of
https://github.com/mihonapp/mihon.git
synced 2025-09-19 03:08:46 +02:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user