Skip to content

Commit

Permalink
Same build error
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaygaba committed Sep 18, 2023
1 parent b155600 commit 871a3f0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ class PaparazziSampleScreenshotTest {
fontScale = fontScale
),
// Needed so that UI that uses it don't crash during screenshot tests
LocalOnBackPressedDispatcherOwner provides object: OnBackPressedDispatcherOwner {
override fun getLifecycle() = lifecycleOwner.lifecycle

override fun getOnBackPressedDispatcher() = OnBackPressedDispatcher()
LocalOnBackPressedDispatcherOwner provides object : OnBackPressedDispatcherOwner {
override val lifecycle: Lifecycle
get() = lifecycleOwner.lifecycle
override val onBackPressedDispatcher: OnBackPressedDispatcher
get() = OnBackPressedDispatcher()
}
) {
Box {
Expand Down

0 comments on commit 871a3f0

Please sign in to comment.