Add row dividers in source migration list

This commit is contained in:
arkon 2020-04-27 22:22:25 -04:00
parent 4bb9949768
commit 2ad3fa1593

View file

@ -10,6 +10,7 @@ import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.databinding.MigrationControllerBinding import eu.kanade.tachiyomi.databinding.MigrationControllerBinding
import eu.kanade.tachiyomi.ui.base.controller.NucleusController import eu.kanade.tachiyomi.ui.base.controller.NucleusController
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
import eu.kanade.tachiyomi.ui.browse.source.SourceDividerItemDecoration
class MigrationController : class MigrationController :
NucleusController<MigrationControllerBinding, MigrationPresenter>(), NucleusController<MigrationControllerBinding, MigrationPresenter>(),
@ -39,6 +40,7 @@ class MigrationController :
adapter = FlexibleAdapter(null, this) adapter = FlexibleAdapter(null, this)
binding.migrationRecycler.layoutManager = LinearLayoutManager(view.context) binding.migrationRecycler.layoutManager = LinearLayoutManager(view.context)
binding.migrationRecycler.adapter = adapter binding.migrationRecycler.adapter = adapter
binding.migrationRecycler.addItemDecoration(SourceDividerItemDecoration(view.context))
} }
override fun onDestroyView(view: View) { override fun onDestroyView(view: View) {