doGetRelative — use getNameSequence instead of getName +review

This commit is contained in:
Vladimir Krivosheev
2014-07-02 14:09:17 +02:00
parent d9c5973b9b
commit 2ba129e09a
@@ -129,7 +129,7 @@ public class VfsUtilCore {
if (length > 0) {
length++;
}
length += parent.getName().length();
length += parent.getNameSequence().length();
parent = parent.getParent();
}
@@ -141,7 +141,7 @@ public class VfsUtilCore {
if (index < length) {
chars[--index] = separator;
}
String name = parent.getName();
CharSequence name = parent.getNameSequence();
for (int i = name.length() - 1; i >= 0; i--) {
chars[--index] = name.charAt(i);
}