Skip to content

Instantly share code, notes, and snippets.

@oradkovsky
Created April 28, 2020 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oradkovsky/5437b1cfe68367a23dadd4c467b28167 to your computer and use it in GitHub Desktop.
Save oradkovsky/5437b1cfe68367a23dadd4c467b28167 to your computer and use it in GitHub Desktop.
class MyFragment1 : Fragment() {
private val myViewModel: MyViewModel by sharedViewModel()
}
class MyFragment2 : Fragment() {
private val myViewModel: MyViewModel by sharedViewModel()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment