mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-25 10:37:51 +02:00
Simplify selected count to just show the number
This commit is contained in:
@ -147,7 +147,7 @@ class CategoryController : NucleusController<CategoryPresenter>(),
|
||||
override fun onPrepareActionMode(mode: ActionMode, menu: Menu): Boolean {
|
||||
val adapter = adapter ?: return false
|
||||
val count = adapter.selectedItemCount
|
||||
mode.title = resources?.getString(R.string.label_selected, count)
|
||||
mode.title = count.toString()
|
||||
|
||||
// Show edit button only when one item is selected
|
||||
val editItem = mode.menu.findItem(R.id.action_edit)
|
||||
|
@ -423,7 +423,7 @@ class LibraryController(
|
||||
// Destroy action mode if there are no items selected.
|
||||
destroyActionModeIfNeeded()
|
||||
} else {
|
||||
mode.title = resources?.getString(R.string.label_selected, count)
|
||||
mode.title = count.toString()
|
||||
menu.findItem(R.id.action_edit_cover)?.isVisible = count == 1
|
||||
}
|
||||
return false
|
||||
|
@ -355,7 +355,7 @@ class ChaptersController : NucleusController<ChaptersPresenter>(),
|
||||
// Destroy action mode if there are no items selected.
|
||||
destroyActionModeIfNeeded()
|
||||
} else {
|
||||
mode.title = resources?.getString(R.string.label_selected, count)
|
||||
mode.title = count.toString()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
@ -300,7 +300,7 @@ class RecentChaptersController : NucleusController<RecentChaptersPresenter>(),
|
||||
// Destroy action mode if there are no items selected.
|
||||
destroyActionModeIfNeeded()
|
||||
} else {
|
||||
mode.title = resources?.getString(R.string.label_selected, count)
|
||||
mode.title = count.toString()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user