Skip to content

Commit

Permalink
fix(android): dismiss accessory menu after option picked
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed Sep 13, 2024
1 parent d2b1da0 commit de587cf
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,14 @@ class AccessoriesViewModel @Inject constructor(
AccessoriesUiAction.AccessoryMenuDismissed -> setAccessoryMenu(isExpanded = false)
AccessoriesUiAction.ViewAllAlleysClicked -> sendEvent(AccessoriesScreenUiEvent.ViewAllAlleys)
AccessoriesUiAction.ViewAllGearClicked -> sendEvent(AccessoriesScreenUiEvent.ViewAllGear)
AccessoriesUiAction.AddAlleyClicked -> sendEvent(AccessoriesScreenUiEvent.AddAlley)
AccessoriesUiAction.AddGearClicked -> sendEvent(AccessoriesScreenUiEvent.AddGear)
AccessoriesUiAction.AddAlleyClicked -> {
setAccessoryMenu(isExpanded = false)
sendEvent(AccessoriesScreenUiEvent.AddAlley)
}
AccessoriesUiAction.AddGearClicked -> {
setAccessoryMenu(isExpanded = false)
sendEvent(AccessoriesScreenUiEvent.AddGear)
}
is AccessoriesUiAction.AlleyClicked -> sendEvent(
AccessoriesScreenUiEvent.ShowAlleyDetails(action.alley.alleyId),
)
Expand Down

0 comments on commit de587cf

Please sign in to comment.