Simplify selected count to just show the number

This commit is contained in:
arkon 2020-02-16 16:00:41 -05:00
parent 74cc77400c
commit 9cdd4bee97
5 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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

View File

@ -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
}

View File

@ -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
}

View File

@ -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>