Bladeren bron

Partial revert 914b686c8eaf3954e291355975532eb28662c38c (#5749)

Didn't mean to remove this line, this fixes resuming to read downloaded chapter.
Ivan Iskandar 3 jaren geleden
bovenliggende
commit
26b8df5354
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt

@@ -77,6 +77,7 @@ abstract class PagerViewer(val activity: ReaderActivity) : BaseViewer {
         pager.layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
         pager.offscreenPageLimit = 1
         pager.id = R.id.reader_pager
+        pager.adapter = adapter
         pager.addOnPageChangeListener(
             object : ViewPager.SimpleOnPageChangeListener() {
                 override fun onPageSelected(position: Int) {