mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge branch 'develop'
This commit is contained in:
commit
b572e4b935
2 changed files with 13 additions and 3 deletions
|
@ -543,6 +543,13 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
|
|||
FileStorageUtils.getMimeTypeFromName(mRemotePath).startsWith("image/"));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 'True' if the file is hidden
|
||||
*/
|
||||
public boolean isHidden() {
|
||||
return getFileName().startsWith(".");
|
||||
}
|
||||
|
||||
public String getPermissions() {
|
||||
return mPermissions;
|
||||
}
|
||||
|
|
|
@ -496,12 +496,15 @@ public class OCFileListFragment extends ExtendedListFragment implements FileActi
|
|||
if (file.isFolder()) {
|
||||
foldersCount++;
|
||||
} else {
|
||||
if (!file.isHidden()) {
|
||||
filesCount++;
|
||||
|
||||
if (file.isImage()) {
|
||||
imagesCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// set footer text
|
||||
setFooterText(generateFooterText(filesCount, foldersCount));
|
||||
|
||||
|
|
Loading…
Reference in a new issue