Skip to content

Commit

Permalink
Follow previous comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jobobby04 committed Aug 18, 2024
1 parent fc956fc commit 759fd4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.ui.reader.viewer.webtoon

import android.graphics.PointF
import android.os.Build
import android.view.KeyEvent
import android.view.MotionEvent
import android.view.View
Expand Down Expand Up @@ -403,4 +404,4 @@ 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
private val RecyclerViewCacheSize = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) 4 else 2

0 comments on commit 759fd4d

Please sign in to comment.