Created
July 5, 2020 21:39
-
-
Save Garyfimo/2f0a715c8e1eece1ba1ad114aa2fef1e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MainActivity : AppCompatActivity() { | |
private val mainViewModelFactory: MainViewModelFactory by lazy { | |
MainViewModelFactory(DEPENDENCIA_DE_EVALUADOR_USECASE) | |
} | |
private val viewModel: MainViewModel by viewModels { | |
mainViewModelFactory | |
} | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment