altosdroid: Note time at startup to avoid flipping trackers
authorKeith Packard <keithp@keithp.com>
Sun, 12 Jul 2015 03:36:18 +0000 (20:36 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 12 Jul 2015 03:36:18 +0000 (20:36 -0700)
Need to set the initial 'switch' time in onStart to avoid flipping
between trackers before we've done any other 'switching' action.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java

index 4ac2405..d351378 100644 (file)
@@ -652,6 +652,8 @@ public class AltosDroid extends FragmentActivity implements AltosUnitsListener {
                super.onStart();
                AltosDebug.debug("++ ON START ++");
 
+               set_switch_time();
+
                noticeIntent(getIntent());
 
                // Start Telemetry Service