diff options
| author | Keith Packard <keithp@keithp.com> | 2014-09-06 00:14:26 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-09-06 00:37:57 -0700 | 
| commit | 18671803d078aa798b603c67b741c3ba4374f41d (patch) | |
| tree | be3f576695b1f0bc0691aa2038b82cc60433ec1a /altoslib/AltosPreferences.java | |
| parent | 2b2ebd2fee46158abd1ae050cd6d1040ead849a0 (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/AltosPreferences.java')
| -rw-r--r-- | altoslib/AltosPreferences.java | 4 | 
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 */ | 
