diff options
author | Mike Beattie <mike@ethernal.org> | 2012-09-14 00:53:56 +1200 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2012-09-14 17:51:52 +1200 |
commit | 08345b8909922f2ff8f9ed8b4497b9cbea6b26e9 (patch) | |
tree | 334552995bc12f913609ce46e217652ed25a8546 /altoslib | |
parent | 17127847300de9a6782b901926a3fcb9ef021b78 (diff) |
altosui/altoslib: Add call to …Preferences.init() with backend object, remove static init()
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'altoslib')
-rw-r--r-- | altoslib/AltosPreferences.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/altoslib/AltosPreferences.java b/altoslib/AltosPreferences.java index ef30f8e9..a82ea3f6 100644 --- a/altoslib/AltosPreferences.java +++ b/altoslib/AltosPreferences.java @@ -137,8 +137,8 @@ public class AltosPreferences { public static int launcher_channel; - public static void init() { - //preferences = Preferences.userRoot().node("/org/altusmetrum/altosui"); + public static void init(AltosPreferencesBackend in_backend) { + backend = in_backend; /* Initialize logdir from preferences */ String logdir_string = backend.getString(logdirPreference, null); @@ -179,8 +179,6 @@ public class AltosPreferences { AltosConvert.imperial_units = backend.getBoolean(unitsPreference, false); } - static { init(); } - public static void flush_preferences() { backend.flush(); } |