@@ -11,7 +11,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
1111import kotlinx.coroutines.flow.asStateFlow
1212import kotlinx.coroutines.flow.update
1313import kotlinx.parcelize.Parcelize
14- import kotlinx.parcelize.RawValue
1514
1615data class PdfOptions (
1716 val maxScale : Float = 5f ,
@@ -51,7 +50,7 @@ data class PdfOptions(
5150 allowSharing = state.allowSharing,
5251 removeFileWhenFinished = state.removeFileWhenFinished,
5352 backgroundColor = state.backgroundColor.value,
54- spacingBetweenPages = state.spacingBetweenPages
53+ spacingBetweenPages = state.spacingBetweenPages.value
5554 )
5655 },
5756 restore = { saved ->
@@ -62,7 +61,7 @@ data class PdfOptions(
6261 allowSharing = saved.allowSharing,
6362 removeFileWhenFinished = saved.removeFileWhenFinished,
6463 backgroundColor = Color (saved.backgroundColor),
65- spacingBetweenPages = saved.spacingBetweenPages
64+ spacingBetweenPages = saved.spacingBetweenPages.dp
6665 )
6766 },
6867 )
@@ -96,5 +95,5 @@ data class PdfOptionsSavedState(
9695 val allowSharing : Boolean ,
9796 val removeFileWhenFinished : Boolean ,
9897 val backgroundColor : ULong ,
99- val spacingBetweenPages : @RawValue Dp
98+ val spacingBetweenPages : Float
10099 ) : Parcelable
0 commit comments