Skip to content

Instantly share code, notes, and snippets.

@ola0x
Created August 7, 2020 21:59
Show Gist options
  • Save ola0x/cadf63a95ad9a6b88cdc70631da6f5b8 to your computer and use it in GitHub Desktop.
Save ola0x/cadf63a95ad9a6b88cdc70631da6f5b8 to your computer and use it in GitHub Desktop.
override fun onModalOptionSelected(tag: String?, option: Option) {
when(option.id){
R.id.action_share -> findNavController().navigate(R.id.action_favoriteFragment_to_shareFragment)
R.id.action_edit -> findNavController().navigate(R.id.action_favoriteFragment_to_editFragment)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment