Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d51a4878 authored by Haibo Huang's avatar Haibo Huang
Browse files

Fix compilation error with new kotlinc

These code failed with kotlinc v1.3.31. The new compiler is able to
understand Java @NotNull.

Test: build
Change-Id: I7c8c7d4707805feaf4fb142fe78e40c7a53c4a7f
parent c4085073
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)