Skip to content

Commit

Permalink
refactor: Int are now Long, as they should be
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Dec 18, 2024
1 parent fb4c0fb commit 4b0c0bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 {
Expand Down

0 comments on commit 4b0c0bb

Please sign in to comment.