Fix to save preview data onSaveInstanceState
This commit is contained in:
1 parent
98de1d89da
commit
7dc28f36dc
2 files changed
+3
-4
No files matched your search
@@ -16,7 +16,6 @@
|
||||
package com.hippo.ehviewer.client.data
|
||||
|
||||
import com.hippo.ehviewer.client.data.GalleryInfo.Companion.S_LANGS
|
||||
import kotlinx.parcelize.IgnoredOnParcel
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
@Parcelize
|
||||
@@ -38,8 +37,6 @@ class GalleryDetail(
|
||||
var tags: Array<GalleryTagGroup>? = null,
|
||||
var comments: GalleryCommentList? = null,
|
||||
var previewPages: Int = 0,
|
||||
|
||||
@IgnoredOnParcel
|
||||
var previewList: List<GalleryPreview> = emptyList(),
|
||||
) : AbstractGalleryInfo by galleryInfo, GalleryInfo {
|
||||
override fun generateSLang() {
|
||||
|
||||
@@ -17,12 +17,14 @@ package com.hippo.ehviewer.client.data
|
||||
|
||||
import android.os.Parcelable
|
||||
import com.hippo.widget.LoadImageView
|
||||
import kotlinx.parcelize.IgnoredOnParcel
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
@Parcelize
|
||||
data class GalleryPreview(
|
||||
val imageUrl: String,
|
||||
val pageUrl: String,
|
||||
@IgnoredOnParcel
|
||||
val pageUrl: String = "",
|
||||
val position: Int,
|
||||
val offsetX: Int = Int.MIN_VALUE,
|
||||
val offsetY: Int = Int.MIN_VALUE,
|
||||
|
||||
Reference in new issue
Block a user