Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ class OCFileListDelegate(
if (showShareAvatar) null else R.drawable.shared_via_users to R.string.shared_icon_shared
}

file.isSharedViaLink -> R.drawable.shared_via_link to R.string.shared_icon_shared_via_link
file.isShared || file.isSharedViaLink -> R.drawable.shared_via_link to R.string.shared_icon_shared_via_link

else -> R.drawable.ic_unshared to R.string.shared_icon_share
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ class GallerySearchTask(
ocCapability: com.owncloud.android.lib.resources.status.OCCapability
): SearchRemoteOperation =
SearchRemoteOperation("", SearchRemoteOperation.SearchType.GALLERY_SEARCH, false, ocCapability).apply {
setLimit(limit)
setEndDate(endDate)
limit = this@GallerySearchTask.limit
endDate = this@GallerySearchTask.endDate

// workaround to keep SearchRemoteOperation functioning correctly even if we don't actively use startDate
setStartDate(0L)
startDate = 0L
}

private fun logSearchStart() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class OCFileListSearchTask(

for (obj in data) {
try {
val remoteFile = obj as? RemoteFile ?: continue
val remoteFile = (obj as? RemoteFile) ?: continue
var ocFile = FileStorageUtils.fillOCFile(remoteFile)
FileStorageUtils.searchForLocalFileInDefaultPath(ocFile, currentUser.accountName)
ocFile = storageManager.saveFileWithParent(ocFile, activity)
Expand Down
Loading