Use .equals instead of !=

This code never worked as intended. Please consider adding unit tests.
This commit is contained in:
Lukas Reschke 2015-06-02 16:54:35 +02:00
parent f9a33f6de3
commit ba58257627

View file

@ -271,7 +271,7 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
mDirectories.clear();
OCFile fileIt = file;
String parentPath;
while(fileIt != null && fileIt.getFileName() != OCFile.ROOT_PATH) {
while(fileIt != null && !fileIt.getFileName().equals(OCFile.ROOT_PATH)) {
if (fileIt.isFolder()) {
mDirectories.add(fileIt.getFileName());
}