diff options
| author | Keith Packard <keithp@keithp.com> | 2015-06-23 22:04:47 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-06-23 22:04:47 -0700 | 
| commit | aed8d3ee2561bbec59b9684fb2042186191302ca (patch) | |
| tree | e9eadb9c13c8313bd00a98beaac5f84d4c273aed | |
| parent | b1b41e0823a60769e7d2d806f4d97ae043d7dae3 (diff) | |
altosdroid: Make sure flight voice output always starts with 'speed'
This resets the flight-mode voice output state back to start again
each time the flight tab is selected
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java b/altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java index 8eb08b99..e876956d 100644 --- a/altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java +++ b/altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java @@ -183,6 +183,9 @@ public class AltosVoice {  		if (state == null)  			return false; +		if (last_tell_mode != TELL_MODE_FLIGHT) +			last_flight_tell = TELL_FLIGHT_NONE; +  		if (state.state != last_state && AltosLib.ao_flight_boost <= state.state && state.state <= AltosLib.ao_flight_landed) {  			speak(state.state_name());  			if (descending(state.state) && !descending(last_state)) { | 
