mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 03:07:25 +01:00
Simplify selected count to just show the number
This commit is contained in:
parent
74cc77400c
commit
9cdd4bee97
@ -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
|
||||
}
|
||||
|
@ -18,7 +18,6 @@
|
||||
<string name="label_recent_manga">Recently read</string>
|
||||
<string name="label_catalogues">Catalogues</string>
|
||||
<string name="label_categories">Categories</string>
|
||||
<string name="label_selected">Selected: %1$d</string>
|
||||
<string name="label_backup">Backup</string>
|
||||
<string name="label_migration">Source migration</string>
|
||||
<string name="label_extensions">Extensions</string>
|
||||
|
Loading…
Reference in New Issue
Block a user