]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fixed and extended debug info
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 3 Mar 2019 07:51:45 +0000 (09:51 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 3 Mar 2019 07:51:45 +0000 (09:51 +0200)
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java

index 7ea5f7817881cacb688ec740c449afccbf76de82..767765b06234cb59e5be0f4599c25f2adf13e817 100644 (file)
@@ -115,8 +115,8 @@ public class Colors {
         if (h < 6) return tupleToColor(c + m, 0 + m, x + m);
 
         throw new IllegalArgumentException(String.format(
-                "Unexpected value for h (%d) while converting hsl(%1.2f, %1.2f, %1.2f) to rgb", h,
-                hue, saturation, lightness));
+                "Unexpected value for h (%1.3f) while converting hsl(%1.3f, %1.3f, %1.3f) to rgb",
+                h, hue, saturation, lightness));
     }
 
     public static @ColorInt