do not use cached path in name comparator to avoid mass creation of VisualCache objects

dbus-notify
Zlatin Balevsky 2022-08-14 07:08:52 +01:00
parent ad03c4104c
commit de88d82936
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}