Merge "Fix compilation error with new kotlinc" into qt-dev-plus-aosp

This commit is contained in:
TreeHugger Robot
2019-06-03 14:03:10 +00:00
committed by Android (Google) Code Review

View File

@@ -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)
}
}
}
}