commit a1b42fb418ff43d7d206b5e8239735b642d51ba9 parent fc5a833daa3041a26db1af625eeecb894b52a56c Author: gstraube <gstraube@mailbox.org> Date: Sun, 13 Aug 2017 11:53:28 +0200 Rename constant Diffstat:
| M | app/src/main/java/com/github/cythara/CanvasPainter.java | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/com/github/cythara/CanvasPainter.java b/app/src/main/java/com/github/cythara/CanvasPainter.java @@ -8,7 +8,7 @@ import android.text.TextPaint; class CanvasPainter { - private static final double MAX_ALLOWED_DEVIATION = 3D; + private static final double TOLERANCE = 3D; private final Context context; private Canvas canvas; @@ -125,7 +125,7 @@ class CanvasPainter { private void setBackground() { int color = Color.RED; - if (Math.abs(pitchDifference.deviation) <= MAX_ALLOWED_DEVIATION) { + if (Math.abs(pitchDifference.deviation) <= TOLERANCE) { color = Color.GREEN; } background.setColor(color);