diff options
| author | Keith Packard <keithp@keithp.com> | 2015-02-16 20:57:11 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-02-16 20:57:11 -0800 |
| commit | c51d39c7ea1153cd2d0dc02c47824a9f35b22fb9 (patch) | |
| tree | de9f28a3737c3a2dbaa62bb1fd78af47303b67f2 /altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java | |
| parent | b13a78e4f457f67605fc6dafc7f9733746a4f70c (diff) | |
altosdroid: Lots of bluetooth connection changes
Appears to more reliably abort in-progress connection attempts so you
can switch TBT devices without having the previous device in
operation.
Shows which device the connection is being attempted for.
Eliminate the 10-second timer and just disable the service when the GUI
shuts down while no BT connection is running.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java')
| -rw-r--r-- | altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java b/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java index cbb20045..f61e7ef2 100644 --- a/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java +++ b/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java @@ -71,13 +71,9 @@ public abstract class AltosDroidTab extends Fragment implements AltosUnitsListen last_state = state; last_from_receiver = from_receiver; last_receiver = receiver; - if (is_current) { - if (AltosDroid.D) Log.d(AltosDroid.TAG, String.format("%s: visible, performing update", tab_name())); - + if (is_current) show(state, from_receiver, receiver); - } else { - if (AltosDroid.D) Log.d(AltosDroid.TAG, String.format("%s: not visible, skipping update", tab_name())); + else return; - } } } |
