Skip to content

Commit

Permalink
review correction
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-alfresco committed May 13, 2024
1 parent 282260c commit e117f4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion capture/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
<string name="format_video_duration_hour" translatable="false">%02d:%02d:%02d</string>
<string name="format_video_duration_minute" translatable="false">%02d:%02d</string>
<string name="error_file_size_exceed">The selected file size cannot exceed 100MB to upload.</string>
<string name="error_file_size_exceed_10mb">The selected file size cannot exceed 10MB to upload.</string>
<string name="error_file_size_exceed_10mb">The selected file size cannot exceed %d MB to upload.</string>

</resources>

0 comments on commit e117f4c

Please sign in to comment.