altosui/altoslib: Add call to …Preferences.init() with backend object, remove static...
[fw/altos] / altosui / AltosUIPreferences.java
index 6e4c9097268f697ca3408f6115d7c45e92a3bd31..c1087dd6a5de7decab800a958fc7003d6f35e0bb 100644 (file)
@@ -45,7 +45,9 @@ public class AltosUIPreferences extends AltosPreferences {
        /* Serial debug */
        static boolean serial_debug;
 
-       public static void init() {
+       public static void init(AltosUIPreferencesBackend in_backend) {
+               super(in_backend);
+
                font_listeners = new LinkedList<AltosFontListener>();
 
                font_size = backend.getInt(fontSizePreference, Altos.font_size_medium);
@@ -57,8 +59,6 @@ public class AltosUIPreferences extends AltosPreferences {
                AltosLink.set_debug(serial_debug);
        }
 
-       static { init(); }
-
        static void set_component(Component in_component) {
                component = in_component;
        }