We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73e2331 + 5149fce commit 4460d8bCopy full SHA for 4460d8b
2 files changed
app/src/main/java/com/owncloud/android/operations/RemoveFileOperation.kt
@@ -34,7 +34,7 @@ import com.owncloud.android.utils.MimeTypeUtil
34
@Suppress("LongParameterList")
35
class RemoveFileOperation(
36
val file: OCFile,
37
- private val onlyLocalCopy: Boolean,
+ val onlyLocalCopy: Boolean,
38
private val user: User,
39
val isInBackground: Boolean,
40
private val context: Context,
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
@@ -2201,7 +2201,7 @@ class FileDisplayActivity :
2201
resetScrollingAndUpdateActionBar()
2202
}
2203
2204
- if (leftFragment is OCFileListFragment) {
+ if (leftFragment is OCFileListFragment && !operation.onlyLocalCopy) {
2205
leftFragment.adapter?.removeFile(removedFile)
2206
2207
if (leftFragment.adapter?.isEmpty == true) {
0 commit comments