Use the clear selection function to destroy the action mode

This commit is contained in:
Jobobby04 2021-06-13 14:41:14 -04:00
parent d04161cc9e
commit 96a932264b

View File

@ -549,7 +549,7 @@ class LibraryController(
R.id.action_migrate -> { R.id.action_migrate -> {
val skipPre = preferences.skipPreMigration().get() val skipPre = preferences.skipPreMigration().get()
val selectedMangaIds = selectedMangas.filterNot { it.source == MERGED_SOURCE_ID }.mapNotNull { it.id } val selectedMangaIds = selectedMangas.filterNot { it.source == MERGED_SOURCE_ID }.mapNotNull { it.id }
destroyActionModeIfNeeded() clearSelection()
if (selectedMangaIds.isNotEmpty()) { if (selectedMangaIds.isNotEmpty()) {
PreMigrationController.navigateToMigration(skipPre, router, selectedMangaIds) PreMigrationController.navigateToMigration(skipPre, router, selectedMangaIds)
} else { } else {