File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
mode/tools/SDKUpdater/src/processing/mode/android/tools Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ public Channel getChannel() {
262
262
}
263
263
}
264
264
265
+ Collections .sort (platformList ,comparator );
265
266
return null ;
266
267
}
267
268
@@ -300,6 +301,17 @@ private Boolean isPlatform(String path){
300
301
}
301
302
return false ;
302
303
}
304
+
305
+ Comparator <Vector > comparator = new Comparator <Vector >() {
306
+ @ Override
307
+ public int compare (Vector o1 , Vector o2 ) {
308
+ String name1 = (String ) o1 .get (1 );
309
+ String name2 = (String ) o2 .get (1 );
310
+ int version1 = Integer .parseInt (name1 .substring (name1 .indexOf (" " )+1 ));
311
+ int version2 = Integer .parseInt (name2 .substring (name2 .indexOf (" " )+1 ));
312
+ return version2 - version1 ;
313
+ }
314
+ };
303
315
}
304
316
305
317
class DownloadTask extends SwingWorker <Object , Object > {
You can’t perform that action at this time.
0 commit comments