Provide default values for fields in JobProgressUpdateBroadcastDTO

This commit is contained in:
Davide Depau committed 2019-08-11 23:04:43 +02:00
1 parent 46d0b6729b
commit a0321e3cf0
1 file changed
+4 -4
@@ -10,10 +10,10 @@ data class JobProgressUpdateBroadcastDTO(
val indefinite: Boolean,
val showProgressBar: Boolean,
val completed: Boolean,
val step: Int?,
val percentage: Double?,
val currentMessage: String?,
val error: Exception?
val step: Int? = null,
val percentage: Double? = null,
val currentMessage: String? = null,
val error: Exception? = null
) : Serializable {
fun writeToIntent(intent: Intent) {
intent.putExtra(BroadcastExtras.UPDATE_DTO, this)