Skip to content

Commit 6c9ec7f

Browse files
committed
fix conflict resolve activity
Signed-off-by: alperozturk <[email protected]>
1 parent 22fef50 commit 6c9ec7f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/src/main/java/com/owncloud/android/ui/activity/ConflictsResolveActivity.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ class ConflictsResolveActivity :
194194
return
195195
}
196196

197-
if (existingFile == null || existingFile?.fileId == -1L) {
198-
Log_OC.e(TAG, "existing file is null, cannot be delete.")
199-
return
200-
}
201-
202197
lifecycleScope.launch {
203198
val result = withContext(Dispatchers.IO) {
204199
fileDataStorageManager.removeFile(existingFile, true, false)
@@ -330,6 +325,7 @@ class ConflictsResolveActivity :
330325
}
331326
}
332327

328+
@Suppress("DEPRECATION")
333329
private fun resolveExistingFileFromDbOrServer(): OCFile? {
334330
val candidate = file ?: return null
335331

@@ -363,7 +359,6 @@ class ConflictsResolveActivity :
363359
}
364360

365361
val remoteFile = result.data[0] as? RemoteFile ?: return null
366-
367362
dbFile = fileDataStorageManager.getFileByDecryptedRemotePath(remoteFile.remotePath)
368363

369364
if (dbFile != null && dbFile.fileId != -1L) {

0 commit comments

Comments
 (0)