Skip to content

Commit

Permalink
Add comment about RecyclerView cache size (#1119)
Browse files Browse the repository at this point in the history
Note for forks: Increasing cache size may cause OOM on API < 26, better
to make it API 26+ only.

(cherry picked from commit 1c47a6b9b35c622200c731cdbbc076f5263e8d06)
  • Loading branch information
FooIbar authored and Secozzi committed Oct 27, 2024
1 parent 748ac38 commit fa39661
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa39661

Please sign in to comment.