summaryrefslogtreecommitdiff
path: root/altoslib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-09-06 00:14:26 -0700
committerKeith Packard <keithp@keithp.com>2014-09-06 00:37:57 -0700
commit18671803d078aa798b603c67b741c3ba4374f41d (patch)
treebe3f576695b1f0bc0691aa2038b82cc60433ec1a /altoslib
parent2b2ebd2fee46158abd1ae050cd6d1040ead849a0 (diff)
altosdroid: Add imperial unit support
Provides a menu entry to switch units, changes all value displays to use the AltosLib units conversion code. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r--altoslib/AltosPreferences.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosPreferences.java b/altoslib/AltosPreferences.java
index af87b213..dba57dcb 100644
--- a/altoslib/AltosPreferences.java
+++ b/altoslib/AltosPreferences.java
@@ -157,6 +157,10 @@ public class AltosPreferences {
public static int launcher_channel;
public static void init(AltosPreferencesBackend in_backend) {
+
+ if (backend != null)
+ return;
+
backend = in_backend;
/* Initialize logdir from preferences */