Merge "Fix compilation issues with new kotlin compiler"

am: 4fb04e8b7f

Change-Id: I5ec5d8d9bdbe8b595183a4dcd3f47bdb127416f7
This commit is contained in:
Haibo Huang
2019-05-29 15:28:25 -07:00
committed by android-build-merger
2 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ class BrushPropertyDrawable : Drawable {
return _size
}
override fun draw(c: Canvas?) {
override fun draw(c: Canvas) {
c?.let {
val w = bounds.width().toFloat()
val h = bounds.height().toFloat()
@@ -90,4 +90,4 @@ class BrushPropertyDrawable : Drawable {
//
}
}
}

View File

@@ -333,11 +333,11 @@ public class Painting : View, SpotFilter.Plotter {
bits.width.toFloat()/oldBits.height,
bits.height.toFloat()/oldBits.width)
}
c.matrix = matrix
c.setMatrix(matrix)
}
// paint the old artwork atop the new
c.drawBitmap(oldBits, 0f, 0f, _drawPaint)
c.matrix = Matrix()
c.setMatrix(Matrix())
} else {
c.drawColor(paperColor)
}