From 4b0c0bbef117220c0cb53ebec40a76803430b7d4 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Tue, 17 Dec 2024 13:01:35 +0100 Subject: [PATCH] refactor: Int are now Long, as they should be --- .../com/infomaniak/swisstransfer/workers/UploadWorker.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/workers/UploadWorker.kt b/app/src/main/java/com/infomaniak/swisstransfer/workers/UploadWorker.kt index aa115d547..ad0710b40 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/workers/UploadWorker.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/workers/UploadWorker.kt @@ -138,7 +138,7 @@ class UploadWorker @AssistedInject constructor( sealed class UploadProgressUiState(open val uploadedSize: Long) { @Immutable - data class Default(override val uploadedSize: Long = 0) : UploadProgressUiState(uploadedSize) + data class Default(override val uploadedSize: Long = 0L) : UploadProgressUiState(uploadedSize) @Immutable data class Progress(override val uploadedSize: Long) : UploadProgressUiState(uploadedSize) { @@ -159,10 +159,10 @@ class UploadWorker @AssistedInject constructor( } @Immutable - data class Error(override val uploadedSize: Long = 0) : UploadProgressUiState(uploadedSize) + data class Error(override val uploadedSize: Long = 0L) : UploadProgressUiState(uploadedSize) @Immutable - data class Cancel(override val uploadedSize: Long = 0) : UploadProgressUiState(uploadedSize) + data class Cancel(override val uploadedSize: Long = 0L) : UploadProgressUiState(uploadedSize) } companion object {