Follow previous comment

This commit is contained in:
Jobobby04 2024-08-17 20:38:26 -04:00
parent fc956fc791
commit 759fd4d4e3

View File

@ -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
@ -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