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 4ac24053f421abdffd2ff395a30e836b0d2f769f..d351378d6c2bb0da256cb2c78c30bf111527c94e 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