Skip to content

Commit

Permalink
Fix setting number of coordinates in DetectorView
Browse files Browse the repository at this point in the history
mapResultToView() already gives the number of components (in
the target array), not points. So this number doesn't need to
be doubled.
  • Loading branch information
markusfisch committed Dec 4, 2021
1 parent cab8d6c commit 5f91fe2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class DetectorView : View {
}
}

fun update(numberOfResultPoints: Int) {
coordinatesLast = numberOfResultPoints * 2
fun update(numberOfCoordinates: Int) {
coordinatesLast = numberOfCoordinates
invalidate()
removeCallbacks(invalidateRunnable)
postDelayed(invalidateRunnable, 500)
Expand Down

0 comments on commit 5f91fe2

Please sign in to comment.