mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +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,9 +496,12 @@ public class OCFileListFragment extends ExtendedListFragment implements FileActi
|
|||
if (file.isFolder()) {
|
||||
foldersCount++;
|
||||
} else {
|
||||
filesCount++;
|
||||
if (file.isImage()){
|
||||
imagesCount++;
|
||||
if (!file.isHidden()) {
|
||||
filesCount++;
|
||||
|
||||
if (file.isImage()) {
|
||||
imagesCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue