Daniele B
02/25/2023, 12:50 PMclass MyApp : Application() {
lateinit var model: MyCustomModel
override fun onCreate() {
super.onCreate()
model = MyCustomModel.Factory.get(this)
}
}
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val model = (application as MyApp).model
setContent {
MyMaterialTheme {
MainComposable(model)
}
}
}
}
CLOVIS
02/25/2023, 3:11 PMDaniele B
02/25/2023, 3:15 PMAlbert Chang
02/25/2023, 3:56 PMDaniele B
02/25/2023, 4:02 PMAlbert Chang
02/25/2023, 4:07 PMDaniele B
02/25/2023, 4:09 PMAlbert Chang
02/25/2023, 5:03 PMDaniele B
02/25/2023, 5:21 PMColton Idle
02/25/2023, 7:08 PMDaniele B
02/25/2023, 7:31 PMAsh
02/28/2023, 1:22 AMenighma
02/28/2023, 2:48 AM