Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed Oct 25, 2023
1 parent f133bfe commit 6a12bc9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 6a12bc9

Please sign in to comment.