Explorar o código

satisfy codacy

tobiasKaminsky %!s(int64=7) %!d(string=hai) anos
pai
achega
2d60eacdfe
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/main/java/com/owncloud/android/utils/BitmapUtils.java

+ 4 - 4
src/main/java/com/owncloud/android/utils/BitmapUtils.java

@@ -313,10 +313,10 @@ public class BitmapUtils {
         return new int[]{(int) (hsl[0] * 360), sat, lum};
     }
 
-    private static double[] rgbToHsl(double r, double g, double b) {
-        r /= 255;
-        g /= 255;
-        b /= 255;
+    private static double[] rgbToHsl(double rUntrimmed, double gUntrimmed, double bUntrimmed) {
+        double r = rUntrimmed / 255;
+        double g = gUntrimmed / 255;
+        double b = bUntrimmed / 255;
 
         double max = Math.max(r, Math.max(g, b));
         double min = Math.min(r, Math.min(g, b));