project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java Sat Dec 03 18:49:17 2011 +0100
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java Sat Dec 03 18:50:29 2011 +0100
@@ -61,14 +61,15 @@
ret.add(files[i].replace('_', ' ').substring(0, files[i].length()-4)); //replace _ by a space and removed the last four characters (.lua)
}
}
+ ret.add(0,"None");
Collections.sort(ret);
-
- ret.add(0,"None");
return ret;
}
- public static String[] getThemes(Context c){
- return Utils.getDirsWithFileSuffix(c, "Themes", "icon.png");
+ public static List<String> getThemes(Context c){
+ List<String> list = Utils.getDirsWithFileSuffix(c, "Themes", "icon.png");
+ Collections.sort(list);
+ return list;
}
public static List<Scheme> getSchemes(Context c){