altosui: Leave new_gps indication until gps value is used
authorKeith Packard <keithp@keithp.com>
Thu, 13 Sep 2012 05:40:57 +0000 (22:40 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 13 Sep 2012 06:54:13 +0000 (23:54 -0700)
commit0564f9b13d4e3050b0a45fc1c4f710ab2b1f9d81
tree41662bf0bbeb13569f2829ea778a77796506befd
parent7e237920abb582d7ceb3e1925b11a848575ac68a
altosui: Leave new_gps indication until gps value is used

During replay, AltosState may not see a new GPS value as soon as it
lands in the state field as additional records with the same timestamp
may come in after the GPS record.

Instead of resetting the new_gps indication when the new record is
created, wait until the new_gps indication is seen by the AltosState
update code and have that clear the new_gps indication.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosRecord.java
altoslib/AltosState.java