diff --git a/app/src/main/java/com/infomaniak/drive/ui/MainActivity.kt b/app/src/main/java/com/infomaniak/drive/ui/MainActivity.kt index 2b4f945403..aa156f3c68 100644 --- a/app/src/main/java/com/infomaniak/drive/ui/MainActivity.kt +++ b/app/src/main/java/com/infomaniak/drive/ui/MainActivity.kt @@ -449,6 +449,5 @@ class MainActivity : BaseActivity() { companion object { private const val SYNCED_FILES_DELETION_FILES_AMOUNT = 10 - private const val SECURITY_APP_TOLERANCE = 1 * 60 * 1000 // 1min (ms) } } diff --git a/app/src/main/java/com/infomaniak/drive/ui/bottomSheetDialogs/SelectPermissionBottomSheetDialog.kt b/app/src/main/java/com/infomaniak/drive/ui/bottomSheetDialogs/SelectPermissionBottomSheetDialog.kt index e969590fcd..14b98afb3f 100644 --- a/app/src/main/java/com/infomaniak/drive/ui/bottomSheetDialogs/SelectPermissionBottomSheetDialog.kt +++ b/app/src/main/java/com/infomaniak/drive/ui/bottomSheetDialogs/SelectPermissionBottomSheetDialog.kt @@ -207,7 +207,7 @@ class SelectPermissionBottomSheetDialog : FullScreenBottomSheetDialog() { var currentPermission: Permission? = null fun editFileShareLinkOfficePermission(file: File, canEdit: Boolean) = liveData(Dispatchers.IO) { - val body = JsonObject().apply { addProperty(ShareLinkSettings::canEdit.name, canEdit) } + val body = JsonObject().apply { addProperty("can_edit", canEdit) } val apiResponse = ApiRepository.updateShareLink(file, body) if (apiResponse.data == true) FileController.updateShareLinkWithRemote(file.id) emit(apiResponse)