Use the clear selection function to destroy the action mode
This commit is contained in:
parent
d04161cc9e
commit
96a932264b
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user