mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 01:39:22 +02:00
Fix state serialization issues
This commit is contained in:
parent
44426e20cc
commit
61c510abef
2 changed files with 3 additions and 2 deletions
|
@ -262,7 +262,7 @@ sealed class State (val previous: State?): Serializable {
|
|||
val previousSelectMode: SelectMode,
|
||||
val currentDialog: Dialog? = null
|
||||
): Setup(previous = previousSelectMode) {
|
||||
sealed class Dialog
|
||||
sealed class Dialog: Serializable
|
||||
|
||||
data class SystemPermissionDialog(val permission: SystemPermission): Dialog()
|
||||
object ParentKeyDialog: Dialog()
|
||||
|
|
|
@ -31,6 +31,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
|||
import kotlinx.coroutines.flow.combine
|
||||
import kotlinx.coroutines.launch
|
||||
import java.io.IOException
|
||||
import java.io.Serializable
|
||||
|
||||
object MailAuthentication {
|
||||
sealed class State: java.io.Serializable {
|
||||
|
@ -120,7 +121,7 @@ object MailAuthentication {
|
|||
data class Error(val dialog: ErrorDialog, val close: () -> Unit)
|
||||
}
|
||||
|
||||
sealed class ErrorDialog {
|
||||
sealed class ErrorDialog: Serializable {
|
||||
object RateLimit: ErrorDialog()
|
||||
object BlockedMailServer: ErrorDialog()
|
||||
object MailAddressNotAllowed: ErrorDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue