Fixed build error

This commit is contained in:
Abdelilah El Aissaoui 2023-03-21 01:52:55 +01:00
parent 9fdd7fa696
commit b9707de7ac
No known key found for this signature in database
GPG key ID: 7587FC860F594869

View file

@ -241,7 +241,7 @@ class TabInformation(
val tabName: MutableState<String>,
val key: Int,
val path: String?,
appComponent: AppComponent,
appComponent: AppComponent?,
) {
private val tabComponent: TabComponent = DaggerTabComponent.builder()
.appComponent(appComponent)
@ -272,24 +272,7 @@ class TabInformation(
}
}
fun emptyTabInformation() = TabInformation(mutableStateOf(""), 0, "", object : AppComponent {
override fun inject(main: App) {}
override fun appStateManager(): AppStateManager {
error("This method should not be invoked - emptyTabInformation")
}
override fun settingsViewModel(): SettingsViewModel {
error("This method should not be invoked - emptyTabInformation")
}
override fun credentialsStateManager(): CredentialsStateManager {
error("This method should not be invoked - emptyTabInformation")
}
override fun appPreferences(): AppSettings {
error("This method should not be invoked - emptyTabInformation")
}
})
fun emptyTabInformation() = TabInformation(mutableStateOf(""), 0, "", null)
@Composable
inline fun <reified T> gitnuroViewModel(): T {