|
@@ -14,7 +14,6 @@ import android.view.ViewGroup
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import androidx.appcompat.view.ActionMode
|
|
import androidx.appcompat.view.ActionMode
|
|
import androidx.recyclerview.widget.ConcatAdapter
|
|
import androidx.recyclerview.widget.ConcatAdapter
|
|
-import androidx.recyclerview.widget.DividerItemDecoration
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import androidx.recyclerview.widget.RecyclerView
|
|
import androidx.recyclerview.widget.RecyclerView
|
|
import com.bluelinelabs.conductor.ControllerChangeHandler
|
|
import com.bluelinelabs.conductor.ControllerChangeHandler
|
|
@@ -47,6 +46,7 @@ import eu.kanade.tachiyomi.ui.library.ChangeMangaCoverDialog
|
|
import eu.kanade.tachiyomi.ui.library.LibraryController
|
|
import eu.kanade.tachiyomi.ui.library.LibraryController
|
|
import eu.kanade.tachiyomi.ui.main.MainActivity
|
|
import eu.kanade.tachiyomi.ui.main.MainActivity
|
|
import eu.kanade.tachiyomi.ui.main.offsetAppbarHeight
|
|
import eu.kanade.tachiyomi.ui.main.offsetAppbarHeight
|
|
|
|
+import eu.kanade.tachiyomi.ui.manga.chapter.ChapterDividerItemDecoration
|
|
import eu.kanade.tachiyomi.ui.manga.chapter.ChapterHolder
|
|
import eu.kanade.tachiyomi.ui.manga.chapter.ChapterHolder
|
|
import eu.kanade.tachiyomi.ui.manga.chapter.ChapterItem
|
|
import eu.kanade.tachiyomi.ui.manga.chapter.ChapterItem
|
|
import eu.kanade.tachiyomi.ui.manga.chapter.ChaptersAdapter
|
|
import eu.kanade.tachiyomi.ui.manga.chapter.ChaptersAdapter
|
|
@@ -187,7 +187,7 @@ class MangaController :
|
|
|
|
|
|
binding.recycler.adapter = ConcatAdapter(mangaInfoAdapter, chaptersHeaderAdapter, chaptersAdapter)
|
|
binding.recycler.adapter = ConcatAdapter(mangaInfoAdapter, chaptersHeaderAdapter, chaptersAdapter)
|
|
binding.recycler.layoutManager = LinearLayoutManager(view.context)
|
|
binding.recycler.layoutManager = LinearLayoutManager(view.context)
|
|
- binding.recycler.addItemDecoration(DividerItemDecoration(view.context, DividerItemDecoration.VERTICAL))
|
|
|
|
|
|
+ binding.recycler.addItemDecoration(ChapterDividerItemDecoration(view.context))
|
|
binding.recycler.setHasFixedSize(true)
|
|
binding.recycler.setHasFixedSize(true)
|
|
chaptersAdapter?.fastScroller = binding.fastScroller
|
|
chaptersAdapter?.fastScroller = binding.fastScroller
|
|
|
|
|