altosdroid: Save AltosState and restore at startup
authorKeith Packard <keithp@keithp.com>
Sun, 16 Nov 2014 06:52:42 +0000 (22:52 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 16 Nov 2014 06:52:42 +0000 (22:52 -0800)
commit5aae1446026a08bf8f09c56b960545eff30a8bd1
treee5d0daecf0af17bc9a9abd5a4d94b982bd025d19
parent52ce23327bd81e2d40a1817442e75bd6b60ffe95
altosdroid: Save AltosState and restore at startup

Instead of re-parsing the old logfile, save the current state in the
preferences database and restore at restart of the
TelemetryService. This makes the state get restored even before the BT
connection is recovered.

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