mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
[Lab] Fix JSON page crashing because of serializing AppDb.
This commit is contained in:
parent
62ffc652ab
commit
742bd03e9e
@ -14,6 +14,7 @@ import pl.szczodrzynski.edziennik.ext.takePositive
|
|||||||
import kotlin.coroutines.CoroutineContext
|
import kotlin.coroutines.CoroutineContext
|
||||||
|
|
||||||
abstract class BaseConfig(
|
abstract class BaseConfig(
|
||||||
|
@Transient
|
||||||
val db: AppDb,
|
val db: AppDb,
|
||||||
val profileId: Int? = null,
|
val profileId: Int? = null,
|
||||||
protected var entries: List<ConfigEntry>? = null,
|
protected var entries: List<ConfigEntry>? = null,
|
||||||
|
@ -91,6 +91,7 @@ open class Profile(
|
|||||||
get() = registration == REGISTRATION_ENABLED && !archived
|
get() = registration == REGISTRATION_ENABLED && !archived
|
||||||
|
|
||||||
@delegate:Ignore
|
@delegate:Ignore
|
||||||
|
@delegate:Transient
|
||||||
val config by lazy { App.config[this.id] }
|
val config by lazy { App.config[this.id] }
|
||||||
|
|
||||||
override fun getImageDrawable(context: Context) = this.getDrawable(context)
|
override fun getImageDrawable(context: Context) = this.getDrawable(context)
|
||||||
|
Loading…
Reference in New Issue
Block a user