project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java
equal
deleted
inserted
replaced
59 for(int i = 0; i < files.length; i++){ |
59 for(int i = 0; i < files.length; i++){ |
60 if(files[i].endsWith(".lua")){ |
60 if(files[i].endsWith(".lua")){ |
61 ret.add(files[i].replace('_', ' ').substring(0, files[i].length()-4)); //replace _ by a space and removed the last four characters (.lua) |
61 ret.add(files[i].replace('_', ' ').substring(0, files[i].length()-4)); //replace _ by a space and removed the last four characters (.lua) |
62 } |
62 } |
63 } |
63 } |
|
64 ret.add(0,"None"); |
64 Collections.sort(ret); |
65 Collections.sort(ret); |
65 |
|
66 ret.add(0,"None"); |
|
67 return ret; |
66 return ret; |
68 } |
67 } |
69 |
68 |
70 public static String[] getThemes(Context c){ |
69 public static List<String> getThemes(Context c){ |
71 return Utils.getDirsWithFileSuffix(c, "Themes", "icon.png"); |
70 List<String> list = Utils.getDirsWithFileSuffix(c, "Themes", "icon.png"); |
|
71 Collections.sort(list); |
|
72 return list; |
72 } |
73 } |
73 |
74 |
74 public static List<Scheme> getSchemes(Context c){ |
75 public static List<Scheme> getSchemes(Context c){ |
75 List<Scheme> list = Scheme.getSchemes(c); |
76 List<Scheme> list = Scheme.getSchemes(c); |
76 Collections.sort(list); |
77 Collections.sort(list); |