altosui: Add return to try/catch.. duh
[fw/altos] / altosui / AltosUIPreferences.java
index 6e4c9097268f697ca3408f6115d7c45e92a3bd31..4ef9384d0ceb862a6f3c5a1efa41def1396b043a 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) {
+               AltosPreferences.init(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;
        }