File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
app/src/main/java/com/owncloud/android/ui/activity Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments