Hide bottom navigation

This commit is contained in:
SpiritCroc 2020-05-14 11:39:58 +02:00
parent be8b310d09
commit 98d7a90f73
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class HomeDetailFragment @Inject constructor(
withState(viewModel) {
// Update the navigation view if needed (for when we restore the tabs)
bottomNavigationView.selectedItemId = it.displayMode.toMenuId()
bottomNavigationView.visibility = if (bottomNavigationView.selectedItemId != R.id.bottom_action_home) View.VISIBLE else View.GONE
}
viewModel.selectSubscribe(this, HomeDetailViewState::groupSummary) { groupSummary ->