From 6a12bc9699e5a335c10cb6a60807215a181115ce Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Wed, 25 Oct 2023 09:29:44 +0200 Subject: [PATCH] ~ --- .../orion/viewer/test/espresso/CheckTapZoneStartScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orion-viewer/src/androidTest/kotlin/universe/constellation/orion/viewer/test/espresso/CheckTapZoneStartScreen.kt b/orion-viewer/src/androidTest/kotlin/universe/constellation/orion/viewer/test/espresso/CheckTapZoneStartScreen.kt index e80d841ff..5f675479a 100644 --- a/orion-viewer/src/androidTest/kotlin/universe/constellation/orion/viewer/test/espresso/CheckTapZoneStartScreen.kt +++ b/orion-viewer/src/androidTest/kotlin/universe/constellation/orion/viewer/test/espresso/CheckTapZoneStartScreen.kt @@ -59,7 +59,8 @@ class BookWithStartTapScreen: InstrumentationTestCase(BookDescription.SICP.toOpe (it.view as View).getLocationOnScreen(l) loc.set(l) - displayRect.set(Rect(0, 0, it.display!!.width, it.display!!.height)) + val displayMetrics = it.resources.displayMetrics + displayRect.set(Rect(0, 0, displayMetrics.widthPixels, displayMetrics.heightPixels)) //windowRect.set(it.windowManager.currentWindowMetrics.bounds) }