Fixed build error
This commit is contained in:
parent
9fdd7fa696
commit
b9707de7ac
@ -241,7 +241,7 @@ class TabInformation(
|
|||||||
val tabName: MutableState<String>,
|
val tabName: MutableState<String>,
|
||||||
val key: Int,
|
val key: Int,
|
||||||
val path: String?,
|
val path: String?,
|
||||||
appComponent: AppComponent,
|
appComponent: AppComponent?,
|
||||||
) {
|
) {
|
||||||
private val tabComponent: TabComponent = DaggerTabComponent.builder()
|
private val tabComponent: TabComponent = DaggerTabComponent.builder()
|
||||||
.appComponent(appComponent)
|
.appComponent(appComponent)
|
||||||
@ -272,24 +272,7 @@ class TabInformation(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun emptyTabInformation() = TabInformation(mutableStateOf(""), 0, "", object : AppComponent {
|
fun emptyTabInformation() = TabInformation(mutableStateOf(""), 0, "", null)
|
||||||
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")
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
inline fun <reified T> gitnuroViewModel(): T {
|
inline fun <reified T> gitnuroViewModel(): T {
|
||||||
|
Loading…
Reference in New Issue
Block a user