static String active_device_address;
public static void init(Context context) {
+ if (backend != null)
+ return;
+
AltosPreferences.init(new AltosDroidPreferencesBackend(context));
- active_device_address = backend.getGetString(activeDevicePreference, null);
+ active_device_address = backend.getString(activeDevicePreference, null);
}
public static void set_active_device(String address) {