Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Simplify selected count to just show the number

Cette révision appartient à :
arkon 2020-02-16 16:00:41 -05:00
Parent 74cc77400c
révision 9cdd4bee97
5 fichiers modifiés avec 4 ajouts et 5 suppressions

Voir le fichier

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

Voir le fichier

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

Voir le fichier

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

Voir le fichier

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

Voir le fichier

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