mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Add row dividers in source migration list
This commit is contained in:
parent
4bb9949768
commit
2ad3fa1593
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue