altosuilib: Show indicator when they switch from invalid back to valid
authorKeith Packard <keithp@keithp.com>
Wed, 13 Jul 2016 04:06:23 +0000 (21:06 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 13 Jul 2016 04:06:23 +0000 (21:06 -0700)
The 'hide' value wasn't getting reset to 'false' each time the state
of the indicators was checked, so indicators would get hidden and then
never shown again.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIUnitsIndicator.java

index dc5cb11c6c6f8bb728c58491ca42969e95076267..d4dd18db0b2fead58625919270fdfc067de7ee6b 100644 (file)
@@ -83,6 +83,7 @@ public abstract class AltosUIUnitsIndicator extends AltosUIIndicator {
        public void show (AltosState state, AltosListenerState listener_state) {
                double[] v = new double[values.length];
 
+               hide = false;
                for (int i = 0; i < values.length; i++) {
                        if (state != null)
                                v[i] = value(state, listener_state, i);