commit
b8fa16e0a2
|
|
@ -279,6 +279,7 @@ public class API {
|
|||
List<Item> files = new ArrayList<>();
|
||||
List<Item> subs = new ArrayList<>();
|
||||
listFiles(new Item(getParentFileId(fileId, object)), files, subs);
|
||||
Collections.sort(files);
|
||||
List<String> playFrom = Arrays.asList("原畫", "普畫");
|
||||
List<String> episode = new ArrayList<>();
|
||||
List<String> playUrl = new ArrayList<>();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import java.util.Arrays;
|
|||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class Item {
|
||||
public class Item implements Comparable<Item> {
|
||||
|
||||
@SerializedName("items")
|
||||
private List<Item> items;
|
||||
|
|
@ -85,4 +85,9 @@ public class Item {
|
|||
public String getDisplayName() {
|
||||
return TextUtils.join(" ", Arrays.asList(getParent(), getName(), getSize())).trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Item item) {
|
||||
return this.getName().compareTo(item.getName());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue