From a23d5ab7345d2c3d58541cf73372cc6436b45ee8 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 30 May 2020 18:06:40 -0400 Subject: [PATCH] Add bottom padding to migrate sources list --- .../manga/MigrationMangaController.kt | 6 ++--- .../sources/MigrationSourcesController.kt | 6 ++--- ...ler.xml => migration_manga_controller.xml} | 0 .../layout/migration_sources_controller.xml | 23 +++++++++++++++++++ 4 files changed, 29 insertions(+), 6 deletions(-) rename app/src/main/res/layout/{migration_controller.xml => migration_manga_controller.xml} (100%) create mode 100644 app/src/main/res/layout/migration_sources_controller.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt index dfc5408fb9..88149b7417 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt @@ -7,7 +7,7 @@ import android.view.ViewGroup import androidx.recyclerview.widget.LinearLayoutManager import eu.davidea.flexibleadapter.FlexibleAdapter import eu.davidea.flexibleadapter.items.IFlexible -import eu.kanade.tachiyomi.databinding.MigrationControllerBinding +import eu.kanade.tachiyomi.databinding.MigrationMangaControllerBinding import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.ui.base.controller.NucleusController import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction @@ -15,7 +15,7 @@ import eu.kanade.tachiyomi.ui.browse.migration.search.SearchController import eu.kanade.tachiyomi.ui.browse.source.SourceDividerItemDecoration class MigrationMangaController : - NucleusController, + NucleusController, FlexibleAdapter.OnItemClickListener { private var adapter: FlexibleAdapter>? = null @@ -40,7 +40,7 @@ class MigrationMangaController : } override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View { - binding = MigrationControllerBinding.inflate(inflater) + binding = MigrationMangaControllerBinding.inflate(inflater) return binding.root } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/MigrationSourcesController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/MigrationSourcesController.kt index 9397c8687c..5cb71139ff 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/MigrationSourcesController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/MigrationSourcesController.kt @@ -5,14 +5,14 @@ import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.LinearLayoutManager import eu.davidea.flexibleadapter.FlexibleAdapter -import eu.kanade.tachiyomi.databinding.MigrationControllerBinding +import eu.kanade.tachiyomi.databinding.MigrationSourcesControllerBinding import eu.kanade.tachiyomi.ui.base.controller.NucleusController import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction import eu.kanade.tachiyomi.ui.browse.migration.manga.MigrationMangaController import eu.kanade.tachiyomi.ui.browse.source.SourceDividerItemDecoration class MigrationSourcesController : - NucleusController(), + NucleusController(), FlexibleAdapter.OnItemClickListener { private var adapter: SourceAdapter? = null @@ -22,7 +22,7 @@ class MigrationSourcesController : } override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View { - binding = MigrationControllerBinding.inflate(inflater) + binding = MigrationSourcesControllerBinding.inflate(inflater) return binding.root } diff --git a/app/src/main/res/layout/migration_controller.xml b/app/src/main/res/layout/migration_manga_controller.xml similarity index 100% rename from app/src/main/res/layout/migration_controller.xml rename to app/src/main/res/layout/migration_manga_controller.xml diff --git a/app/src/main/res/layout/migration_sources_controller.xml b/app/src/main/res/layout/migration_sources_controller.xml new file mode 100644 index 0000000000..cda7ea7539 --- /dev/null +++ b/app/src/main/res/layout/migration_sources_controller.xml @@ -0,0 +1,23 @@ + + + + + + + +