Skip to content

Commit

Permalink
refactor/#11: LocalContext.current 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed May 11, 2024
1 parent a998575 commit 5bdae0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LoginActivity : ComponentActivity() {
color = MaterialTheme.colorScheme.background
) {

userPreference = UserPreference(this)
userPreference = UserPreference(LocalContext.current)
ApiFactory.initializeUserPreference(userPreference)

val viewModel: LoginViewModel = remember { LoginViewModel() }
Expand Down

0 comments on commit 5bdae0e

Please sign in to comment.