Skip to content

Commit

Permalink
fix issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
kroegerama committed Sep 13, 2019
1 parent c98c370 commit 4b2ca0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ResultPointView @JvmOverloads constructor(
fun clear() {
resultPoints = floatArrayOf()

invalidate()
postInvalidate()
}

fun setResult(result: Result, imageWidth: Int, imageHeight: Int, imageRotation: Int) {
Expand All @@ -71,7 +71,7 @@ class ResultPointView @JvmOverloads constructor(
localMatrix.mapRect(rect)
}

invalidate()
postInvalidate()
}

private fun createMatrix(imageWidth: Float, imageHeight: Float, imageRotation: Int) = Matrix().apply {
Expand Down

0 comments on commit 4b2ca0d

Please sign in to comment.