code review
This commit is contained in:
parent
1b16d287e8
commit
bcf755407b
|
@ -89,12 +89,8 @@ class SpaceDirectoryFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPrepareOptionsMenu(menu: Menu) = withState(viewModel) { state ->
|
override fun onPrepareOptionsMenu(menu: Menu) = withState(viewModel) { state ->
|
||||||
menu.findItem(R.id.spaceAddRoom)?.let {
|
menu.findItem(R.id.spaceAddRoom)?.isVisible = state.canAddRooms
|
||||||
it.isVisible = state.canAddRooms
|
menu.findItem(R.id.spaceCreateRoom)?.isVisible = false // Not yet implemented
|
||||||
}
|
|
||||||
menu.findItem(R.id.spaceCreateRoom)?.let {
|
|
||||||
it.isVisible = false // Not yet implemented
|
|
||||||
}
|
|
||||||
super.onPrepareOptionsMenu(menu)
|
super.onPrepareOptionsMenu(menu)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue