altos: Add initial micropeak implementation
[fw/altos] / altosui / AltosUIPreferences.java
index 03e8e1290936e21de066365f44e1f7a9fe4e4d7f..a28c07b06a9c5202cb71989b99012332eedc587e 100644 (file)
@@ -46,6 +46,8 @@ public class AltosUIPreferences extends AltosPreferences {
        static boolean serial_debug;
 
        public static void init() {
+               AltosPreferences.init(new AltosUIPreferencesBackend());
+
                font_listeners = new LinkedList<AltosFontListener>();
 
                font_size = backend.getInt(fontSizePreference, Altos.font_size_medium);
@@ -98,7 +100,7 @@ public class AltosUIPreferences extends AltosPreferences {
                }
        }
        public static int font_size() {
-               synchronized (preferences) {
+               synchronized (backend) {
                        return font_size;
                }
        }
@@ -144,7 +146,7 @@ public class AltosUIPreferences extends AltosPreferences {
        }
 
        public static String look_and_feel() {
-               synchronized (preferences) {
+               synchronized (backend) {
                        return look_and_feel;
                }
        }
@@ -170,7 +172,7 @@ public class AltosUIPreferences extends AltosPreferences {
        }
 
        public static boolean serial_debug() {
-               synchronized (preferences) {
+               synchronized (backend) {
                        return serial_debug;
                }
        }