From e117f4c2b39c786e2a98d2d8cc48e66717d997ed Mon Sep 17 00:00:00 2001 From: Amanpal Singh <87360222+aman-alfresco@users.noreply.github.com> Date: Mon, 13 May 2024 15:50:00 +0530 Subject: [PATCH] review correction --- .../src/main/kotlin/com/alfresco/content/actions/Action.kt | 4 +++- capture/src/main/res/values/strings.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/actions/src/main/kotlin/com/alfresco/content/actions/Action.kt b/actions/src/main/kotlin/com/alfresco/content/actions/Action.kt index 2a69185b..d662c194 100644 --- a/actions/src/main/kotlin/com/alfresco/content/actions/Action.kt +++ b/actions/src/main/kotlin/com/alfresco/content/actions/Action.kt @@ -5,6 +5,7 @@ import android.content.Context import android.view.View import androidx.annotation.StringRes import com.alfresco.Logger +import com.alfresco.content.GetMultipleContents.Companion.MAX_FILE_SIZE_10 import com.alfresco.content.data.APIEvent import com.alfresco.content.data.AnalyticsManager import com.alfresco.content.data.Entry @@ -55,9 +56,10 @@ interface Action { ex.message == ERROR_FILE_SIZE_EXCEED -> { bus.send(Error(context.getString(R.string.error_file_size_exceed))) } + entry is Entry && (entry as Entry).uploadServer == UploadServerType.UPLOAD_TO_PROCESS && ex.message == ERROR_FILE_SIZE_EXCEED -> { - bus.send(Error(context.getString(R.string.error_file_size_exceed_10mb))) + bus.send(Error(context.getString(R.string.error_file_size_exceed_10mb, MAX_FILE_SIZE_10))) } } } catch (ex: Exception) { diff --git a/capture/src/main/res/values/strings.xml b/capture/src/main/res/values/strings.xml index 05af356d..7304edf4 100644 --- a/capture/src/main/res/values/strings.xml +++ b/capture/src/main/res/values/strings.xml @@ -28,6 +28,6 @@ %02d:%02d:%02d %02d:%02d The selected file size cannot exceed 100MB to upload. - The selected file size cannot exceed 10MB to upload. + The selected file size cannot exceed %d MB to upload.