1
0
forked from github/szkolny

[Lab] Fix JSON page crashing because of serializing AppDb.

This commit is contained in:
kuba2k2
2022-10-26 10:31:03 +02:00
parent 62ffc652ab
commit 742bd03e9e
2 changed files with 2 additions and 0 deletions
app/src/main/java/pl/szczodrzynski/edziennik
config
data
db

@ -14,6 +14,7 @@ import pl.szczodrzynski.edziennik.ext.takePositive
import kotlin.coroutines.CoroutineContext
abstract class BaseConfig(
@Transient
val db: AppDb,
val profileId: Int? = null,
protected var entries: List<ConfigEntry>? = null,

@ -91,6 +91,7 @@ open class Profile(
get() = registration == REGISTRATION_ENABLED && !archived
@delegate:Ignore
@delegate:Transient
val config by lazy { App.config[this.id] }
override fun getImageDrawable(context: Context) = this.getDrawable(context)