From bddc4f64a86e96d5b109946bc8e695559ef845c9 Mon Sep 17 00:00:00 2001 From: kenkeiras Date: Thu, 25 Jan 2018 00:00:12 +0100 Subject: [PATCH] Don't show logic elements outside dev mode. --- .../minicards/parts/logic/Ticker.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/codigoparallevar/minicards/parts/logic/Ticker.java b/app/src/main/java/com/codigoparallevar/minicards/parts/logic/Ticker.java index fae0d63..7718fe6 100644 --- a/app/src/main/java/com/codigoparallevar/minicards/parts/logic/Ticker.java +++ b/app/src/main/java/com/codigoparallevar/minicards/parts/logic/Ticker.java @@ -111,19 +111,18 @@ public class Ticker implements Part { @Override public void draw(ScrolledCanvas canvas, boolean devMode) { - Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); - paint.setColor(Color.GRAY); - if (devMode){ drawConnector(canvas); drawWires(canvas, devMode); + + Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); + paint.setColor(Color.GRAY); + + canvas.drawRect( + new Rect(_left, _top, + _right, _bottom), + paint); } - - - canvas.drawRect( - new Rect(_left, _top, - _right, _bottom), - paint); } private void drawConnector(ScrolledCanvas canvas) {