Skip to content

Commit

Permalink
provide androidx.lifecycle.compose.LocalLifecycleOwner in android tar…
Browse files Browse the repository at this point in the history
…get (#434)

* provide androidx.lifecycle.compose.LocalLifecycleOwner in android target

* fix lint
  • Loading branch information
qdsfdhvh authored Jun 3, 2024
1 parent 6f8fdf0 commit a7b5c12
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ internal actual class SavedStateViewModelPlatform actual constructor(val owner:
}

actual fun provideHooks(): List<ProvidedValue<*>> = listOf(
LocalSavedStateRegistryOwner provides owner
LocalSavedStateRegistryOwner provides owner,
androidx.lifecycle.compose.LocalLifecycleOwner provides owner
)

private fun Context.getApplication(): Application? = when (this) {
Expand Down

0 comments on commit a7b5c12

Please sign in to comment.