Created
July 5, 2020 22:03
-
-
Save Garyfimo/ab057e8325ecb3480b61c149b3850f5f 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(), ServiceLocatorActivity { | |
override val self: Activity = this | |
private val mainViewModelFactory: MainViewModelFactory by lazy { | |
serviceLocator.mainViewModelFactory | |
} | |
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