From bd28d178ad6395c398c2f0d02ca54f0df0472186 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Thu, 2 Apr 2020 19:19:14 +0200 Subject: [PATCH] Remove accidental float math --- .../java/net/margaritov/preference/colorpicker/AHSVColor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DroidFishApp/src/main/java/net/margaritov/preference/colorpicker/AHSVColor.java b/DroidFishApp/src/main/java/net/margaritov/preference/colorpicker/AHSVColor.java index 34a564b..3a620d4 100644 --- a/DroidFishApp/src/main/java/net/margaritov/preference/colorpicker/AHSVColor.java +++ b/DroidFishApp/src/main/java/net/margaritov/preference/colorpicker/AHSVColor.java @@ -45,7 +45,7 @@ class AHSVColor { int b = Color.blue(color); double oldHue = hsv[0]; ARGBToHSV(Color.rgb(r, g, b), hsv); - if (hsv[1] <= 0f) + if (hsv[1] <= 0.0) hsv[0] = oldHue; }