mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Commit commit commit
This commit is contained in:
parent
b8c73e2f73
commit
4fa40f7392
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue