altosdroid: cosmetic re-order of methods
authorMike Beattie <mike@ethernal.org>
Tue, 18 Sep 2012 11:43:18 +0000 (23:43 +1200)
committerMike Beattie <mike@ethernal.org>
Tue, 18 Sep 2012 11:43:18 +0000 (23:43 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidPreferences.java

index 28ecc182435be6ad261866e26b1ef476cc478bf6..b8487d073a7fb7a3dcc27294f6b9d93d4e0e9e4f 100644 (file)
@@ -38,19 +38,15 @@ public class AltosDroidPreferences implements AltosPreferencesBackend {
                editor  = prefs.edit();
        }
 
-       public AltosPreferencesBackend node(String key) {
-               return new AltosDroidPreferences(context, key);
-       }
-
-       public void flush() {
-               editor.apply();
-       }
-
        public String[] keys() {
                Map<String, ?> all = prefs.getAll();
                return (String[])all.keySet().toArray();
        }
 
+       public AltosPreferencesBackend node(String key) {
+               return new AltosDroidPreferences(context, key);
+       }
+
        public boolean nodeExists(String key) {
                return prefs.contains(key);
        }
@@ -92,4 +88,8 @@ public class AltosDroidPreferences implements AltosPreferencesBackend {
                editor.remove(key);
        }
 
+       public void flush() {
+               editor.apply();
+       }
+
 }