i18n and format
This commit is contained in:
parent
34a703910b
commit
ed52aed432
@ -122,7 +122,7 @@ class SpaceManageRoomsFragment @Inject constructor(
|
|||||||
views.addRoomToSpaceToolbar.isVisible = true
|
views.addRoomToSpaceToolbar.isVisible = true
|
||||||
vectorBaseActivity.startSupportActionMode(this)
|
vectorBaseActivity.startSupportActionMode(this)
|
||||||
} else {
|
} else {
|
||||||
toolbar?.title = "${state.selectedRooms.size} selected"
|
toolbar?.title = resources.getQuantityString(R.plurals.room_details_selected, state.selectedRooms.size, state.selectedRooms.size)
|
||||||
}
|
}
|
||||||
// views.addRoomToSpaceToolbar.isVisible = false
|
// views.addRoomToSpaceToolbar.isVisible = false
|
||||||
// views.addRoomToSpaceToolbar.startActionMode(this)
|
// views.addRoomToSpaceToolbar.startActionMode(this)
|
||||||
@ -171,10 +171,10 @@ class SpaceManageRoomsFragment @Inject constructor(
|
|||||||
|
|
||||||
override fun onActionItemClicked(mode: ActionMode?, item: MenuItem?): Boolean {
|
override fun onActionItemClicked(mode: ActionMode?, item: MenuItem?): Boolean {
|
||||||
when (item?.itemId) {
|
when (item?.itemId) {
|
||||||
R.id.action_delete -> {
|
R.id.action_delete -> {
|
||||||
handleDeleteSelection()
|
handleDeleteSelection()
|
||||||
}
|
}
|
||||||
R.id.action_mark_as_suggested -> {
|
R.id.action_mark_as_suggested -> {
|
||||||
viewModel.handle(SpaceManageRoomViewAction.MarkAllAsSuggested(true))
|
viewModel.handle(SpaceManageRoomViewAction.MarkAllAsSuggested(true))
|
||||||
}
|
}
|
||||||
R.id.action_mark_as_not_suggested -> {
|
R.id.action_mark_as_not_suggested -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user