mirror of https://github.com/zlatinb/muwire
do not use cached path in name comparator to avoid mass creation of VisualCache objects
parent
ad03c4104c
commit
de88d82936
|
@ -8,8 +8,8 @@ class SharedFileNameComparator implements Comparator<SharedFile>{
|
|||
|
||||
@Override
|
||||
int compare(SharedFile o1, SharedFile o2) {
|
||||
String path1 = o1.getCachedPath()
|
||||
String path2 = o2.getCachedPath()
|
||||
String path1 = o1.getFile().getAbsolutePath()
|
||||
String path2 = o2.getFile().getAbsolutePath()
|
||||
return Collator.getInstance().compare(path1, path2)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue