Commit commit commit

This commit is contained in:
Mario Danic 2017-02-20 20:37:32 +01:00 committed by AndyScherzinger
parent b8c73e2f73
commit 4fa40f7392
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -483,9 +483,8 @@ public class FileListListAdapter extends BaseAdapter {
if (!TextUtils.isEmpty(constraint)) {
for (int i = 0; i < mFilesAll.size(); i++) {
OCFile currentFile = mFilesAll.get(i);
if (currentFile.getRemotePath().replace(currentFile.getFileName(), "")
.equals(currentDirectory.getRemotePath()) &&
currentFile.getFileName().toLowerCase().contains(constraint) &&
if (currentFile.getParentRemotePath().equals(currentDirectory.getRemotePath()) &&
currentFile.getFileName().toLowerCase().contains(constraint.toString().toLowerCase()) &&
!filteredFiles.contains(currentFile)) {
filteredFiles.add(currentFile);
}