Skip to content
Open
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 @@ -34,7 +34,7 @@ import com.owncloud.android.utils.MimeTypeUtil
@Suppress("LongParameterList")
class RemoveFileOperation(
val file: OCFile,
private val onlyLocalCopy: Boolean,
val onlyLocalCopy: Boolean,
private val user: User,
val isInBackground: Boolean,
private val context: Context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ class FileDisplayActivity :
resetScrollingAndUpdateActionBar()
}

if (leftFragment is OCFileListFragment) {
if (leftFragment is OCFileListFragment && !operation.onlyLocalCopy) {
leftFragment.adapter?.removeFile(removedFile)

if (leftFragment.adapter?.isEmpty == true) {
Expand Down
Loading