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 18, 2022
1 parent 36f8855 commit 3dd8979
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DiffUtil
Expand Down Expand Up @@ -194,6 +193,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 +261,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 3dd8979

Please sign in to comment.