Update EyeDropper.kt

This commit is contained in:
Tibor Kaputa 2021-12-29 10:34:51 +01:00 committed by GitHub
parent fa17b0ef9c
commit b1bf1c2745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -8,7 +8,6 @@ import android.view.View
import android.view.View.DRAWING_CACHE_QUALITY_LOW
import android.widget.ImageView
// forked from https://github.com/Madrapps/EyeDropper
class EyeDropper(private val view: View, private val onColorSelected: ((Int) -> Unit)) {
companion object {
@ -64,9 +63,7 @@ class EyeDropper(private val view: View, private val onColorSelected: ((Int) ->
INVERT_MATRIX.mapPoints(mappedPoints)
getPixelAtPoint(drawable.bitmap, mappedPoints[0].toInt(), mappedPoints[1].toInt())
}
else -> {
NO_COLOR
}
else -> NO_COLOR
}
}