Skip to content

Commit

Permalink
Merge "Fix test" into androidx-main
Browse files Browse the repository at this point in the history
  • Loading branch information
supo2co authored and Gerrit Code Review committed Jul 28, 2021
2 parents 0469523 + 87a0157 commit 4998a68
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ public class WindowInfoRepositoryImplTest {
WindowMetricsCalculatorCompat,
FakeWindowBackend()
)
activity.resetLayoutCounter()
activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
activity.waitForLayout()
testScope.launch {
repo.currentWindowMetrics.collect { collector.accept(it) }
}
}
scenario.onActivity { activity ->
activity.resetLayoutCounter()
activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
activity.waitForLayout()
}
Expand Down

0 comments on commit 4998a68

Please sign in to comment.