Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed May 17, 2024
1 parent 488642a commit 8b81a02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fun LoginScreen(
onFinish: (Account?) -> Unit
) {
val model: LoginScreenModel = hiltViewModel { factory: LoginScreenModel.Factory ->
factory.create(skipLoginTypePage, initialLoginInfo, initialLoginType)
factory.create(initialLoginType, skipLoginTypePage, initialLoginInfo)
}

// handle back/up navigation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import kotlinx.coroutines.withContext

@HiltViewModel(assistedFactory = LoginScreenModel.Factory::class)
class LoginScreenModel @AssistedInject constructor(
@Assisted val initialLoginType: LoginType,
@Assisted val skipLoginTypePage: Boolean,
@Assisted val initialLoginInfo: LoginInfo,
@Assisted val initialLoginType: LoginType,
val context: Application,
val loginTypesProvider: LoginTypesProvider,
private val accountRepository: AccountRepository,
Expand All @@ -45,9 +45,9 @@ class LoginScreenModel @AssistedInject constructor(
@AssistedFactory
interface Factory {
fun create(
initialLoginType: LoginType,
skipLoginTypePage: Boolean,
initialLoginInfo: LoginInfo,
initialLoginType: LoginType
initialLoginInfo: LoginInfo
): LoginScreenModel
}

Expand Down

0 comments on commit 8b81a02

Please sign in to comment.