diff options
author | 2019-06-03 14:03:10 +0000 | |
---|---|---|
committer | 2019-06-03 14:03:10 +0000 | |
commit | 3d791f525ab0914a23bf40ffb610ad1d6e1a167c (patch) | |
tree | 8c2e5036d8cb6056443c025c1efcb3a387b04ea7 | |
parent | d6d2f8dab26b1b78958d673cdf7ebe1bbb9ccb89 (diff) | |
parent | d51a487898f3f49c850f24679a1d1c28444b2daa (diff) |
Merge "Fix compilation error with new kotlinc" into qt-dev-plus-aosp
-rw-r--r-- | packages/SystemUI/tests/src/com/android/keyguard/clock/ViewPreviewerTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/tests/src/com/android/keyguard/clock/ViewPreviewerTest.kt b/packages/SystemUI/tests/src/com/android/keyguard/clock/ViewPreviewerTest.kt index d9ef7fa34883..5ece6ef1a794 100644 --- a/packages/SystemUI/tests/src/com/android/keyguard/clock/ViewPreviewerTest.kt +++ b/packages/SystemUI/tests/src/com/android/keyguard/clock/ViewPreviewerTest.kt @@ -47,7 +47,7 @@ class ViewPreviewerTest : SysuiTestCase() { val width = 100 val height = 100 // WHEN a preview image is created - val bitmap = previewer.createPreview(view, width, height) + val bitmap = previewer.createPreview(view, width, height)!! // THEN the bitmap has the expected width and height assertThat(bitmap.height).isEqualTo(height) assertThat(bitmap.width).isEqualTo(width) @@ -60,4 +60,4 @@ class ViewPreviewerTest : SysuiTestCase() { canvas?.drawColor(Color.RED) } } -}
\ No newline at end of file +} |