Skip to content

Commit

Permalink
Don't show remote path in grid mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Aug 17, 2022
1 parent 36f8855 commit 071ada7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ class FileListAdapter(
it.Filename.text = file.fileName
it.fileListSize.text = DisplayUtils.bytesToHumanReadable(file.length, context)
it.fileListLastMod.text = DisplayUtils.getRelativeTimestamp(context, file.modificationTimestamp)
it.fileListPath.apply {
text = file.remotePath
isVisible = !fileListOption.isAllFiles()
}
}
}
ViewType.GRID_ITEM.ordinal -> {
Expand Down Expand Up @@ -258,11 +262,6 @@ class FileListAdapter(
}
checkBoxV.isVisible = getCheckedItems().isNotEmpty()

holder.itemView.findViewById<TextView>(R.id.file_list_path).apply {
text = file.remotePath
isVisible = !fileListOption.isAllFiles()
}

if (file.isFolder) {
// Folder
fileIcon.setImageResource(
Expand Down

0 comments on commit 071ada7

Please sign in to comment.