Add KEEP_SERVER_FOLDER click

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-08-21 10:18:24 +02:00
parent 986d0848fc
commit 7aac89d1d7
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -125,17 +125,18 @@ class ConflictsResolveActivity : FileActivity(), OnConflictDecisionMadeListener
}
Decision.KEEP_SERVER_FOLDER -> {
fileDataStorageManager.offlineOperationDao.deleteByPath(path)
}
Decision.KEEP_BOTH_FOLDER -> {
fileDataStorageManager.keepOfflineOperationAndServerFile(entity)
backgroundJobManager.startOfflineOperations()
offlineOperationNotificationManager.dismissNotification(offlineOperation.id)
}
else -> Unit
}
offlineOperationNotificationManager.dismissNotification(offlineOperation.id)
}
}
}