Created
February 26, 2020 23:00
-
-
Save Nimrodda/14a3b7b702d0e35ce8a30c3afeec0c7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DetailActivity : AppCompatActivity() { | |
@Inject | |
internal lateinit var detailViewModelFactory: DetailViewModelFactory | |
private val viewModel: DetailViewModel by viewModels { | |
GenericSavedStateViewModelFactory(detailViewModelFactory, this) | |
} | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
// Use viewModel here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment