Skip to content

Commit

Permalink
fix: Change LocalLifecycleOwner deprecated package for current lifecy…
Browse files Browse the repository at this point in the history
…cleOwner collect process
  • Loading branch information
marlonlom committed Sep 8, 2024
1 parent ad00f0c commit 565f6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fun SettingsRoute(
}

val userPreferences by settingsViewModel.settingsUiState.collectAsStateWithLifecycle(
lifecycleOwner = androidx.compose.ui.platform.LocalLifecycleOwner.current
lifecycleOwner = androidx.lifecycle.compose.LocalLifecycleOwner.current
)

val horizontalPadding = getSettingsContentHorizontalPadding(windowSizeInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class MainActivity : ComponentActivity() {
val configuration = LocalConfiguration.current
val windowSizeClass = calculateWindowSizeClass(activity = this)
val devicePostureState by devicePostureFlow.collectAsStateWithLifecycle(
lifecycleOwner = androidx.compose.ui.platform.LocalLifecycleOwner.current
lifecycleOwner = androidx.lifecycle.compose.LocalLifecycleOwner.current
)
val windowSizeInfo = WindowSizeInfo(
windowSizeClass = windowSizeClass,
Expand Down

0 comments on commit 565f6fc

Please sign in to comment.