Fix select-all button selecting wrong category

This commit is contained in:
NerdNumber9 2019-08-09 05:11:25 -04:00
parent a0b490b10f
commit 9c70e69300

View File

@ -439,7 +439,9 @@ class LibraryController(
R.id.action_move_to_category -> showChangeMangaCategoriesDialog() R.id.action_move_to_category -> showChangeMangaCategoriesDialog()
R.id.action_delete -> showDeleteMangaDialog() R.id.action_delete -> showDeleteMangaDialog()
R.id.action_select_all -> { R.id.action_select_all -> {
selectAllRelay.call(activeCategory) adapter?.categories?.getOrNull(library_pager.currentItem)?.id?.let {
selectAllRelay.call(it)
}
} }
R.id.action_auto_source_migration -> { R.id.action_auto_source_migration -> {
router.pushController(MigrationDesignController.create( router.pushController(MigrationDesignController.create(