mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Use .equals instead of !=
This code never worked as intended. Please consider adding unit tests.
This commit is contained in:
parent
f9a33f6de3
commit
ba58257627
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue