Skip to content

Instantly share code, notes, and snippets.

@marcherdiego
Created July 29, 2020 21:36
Show Gist options
  • Save marcherdiego/3a06b3fa4e53833212b78e09897652ea to your computer and use it in GitHub Desktop.
Save marcherdiego/3a06b3fa4e53833212b78e09897652ea to your computer and use it in GitHub Desktop.
@Subscribe
fun onSomebuttonClicked(event: SomebuttonClickedEvent) {
val activity = view.getActivity() ?: return
val someIntent = Intent(activity, SomeActivity::class.java)
activity.startActivity(someIntent)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment