Skip to content

Commit

Permalink
refactor: replace usage of sharedViewModel with activityViewModel
Browse files Browse the repository at this point in the history
Deprecation warning resolution
  • Loading branch information
wax911 committed Mar 26, 2024
1 parent 5524341 commit 9333e3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.debounce
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch
import org.koin.androidx.viewmodel.ext.android.sharedViewModel
import org.koin.androidx.viewmodel.ext.android.activityViewModel
import timber.log.Timber

class AuthContent(
Expand All @@ -50,7 +50,7 @@ class AuthContent(

private val presenter by inject<AuthPresenter>()

private val viewModel by sharedViewModel<AuthViewModel>()
private val viewModel by activityViewModel<AuthViewModel>()

private val resetNetworkStateOnBackPress =
object : OnBackPressedCallback(true) {
Expand Down

0 comments on commit 9333e3b

Please sign in to comment.