Skip to content

Commit

Permalink
Add comment about RecyclerView cache size
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.
  • Loading branch information
FooIbar committed Aug 13, 2024
1 parent f4348df commit 24744dc
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 24744dc

Please sign in to comment.