Completed most of auto-migration UI

This commit is contained in:
NerdNumber9
2019-07-31 03:39:51 -04:00
parent f811cc5c87
commit 5b3e72db54
18 changed files with 976 additions and 339 deletions

View File

@@ -437,8 +437,10 @@ class LibraryController(
R.id.action_move_to_category -> showChangeMangaCategoriesDialog()
R.id.action_delete -> showDeleteMangaDialog()
R.id.action_auto_source_migration -> {
router.pushController(MigrationDesignController.create(
selectedMangas.mapNotNull { it.id }
).withFadeTransaction())
destroyActionModeIfNeeded()
router.pushController(MigrationDesignController().withFadeTransaction())
}
else -> return false
}

View File

@@ -252,6 +252,8 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
private fun setMangaInfo(manga: Manga, source: Source?) {
val view = view ?: return
// TODO Duplicated in MigrationProcedureAdapter
//update full title TextView.
manga_full_title.text = if (manga.title.isBlank()) {
view.context.getString(R.string.unknown)

View File

@@ -4,9 +4,9 @@ import eu.kanade.tachiyomi.R
object MigrationFlags {
private const val CHAPTERS = 0b001
private const val CATEGORIES = 0b010
private const val TRACK = 0b100
const val CHAPTERS = 0b001
const val CATEGORIES = 0b010
const val TRACK = 0b100
private const val CHAPTERS2 = 0x1
private const val CATEGORIES2 = 0x2