mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-03-31 14:04:04 +02:00

* [App] Add base for AppData loading. * [UI] Fix timetable widget date navigation. * [UI] Migrate register-specific behavior to use AppData. * [App] Implement new delegate-based config base. * [Config] Migrate config and profile config. * [Config] Remove defaults from migrations. * [App] Apply event types and config overrides from AppData. * [Events] Change default event types for university type school.
33 lines
1.3 KiB
Kotlin
33 lines
1.3 KiB
Kotlin
/*
|
|
* Copyright (c) Kuba Szczodrzyński 2020-1-19.
|
|
*/
|
|
|
|
package pl.szczodrzynski.edziennik.config
|
|
|
|
import pl.szczodrzynski.edziennik.data.db.entity.Profile.Companion.AGENDA_DEFAULT
|
|
import pl.szczodrzynski.edziennik.ui.home.HomeCardModel
|
|
|
|
@Suppress("RemoveExplicitTypeArguments")
|
|
class ProfileConfigUI(base: ProfileConfig) {
|
|
|
|
var agendaViewType by base.config<Int>(AGENDA_DEFAULT)
|
|
var agendaCompactMode by base.config<Boolean>(false)
|
|
var agendaGroupByType by base.config<Boolean>(false)
|
|
var agendaLessonChanges by base.config<Boolean>(true)
|
|
var agendaTeacherAbsence by base.config<Boolean>(true)
|
|
var agendaElearningMark by base.config<Boolean>(false)
|
|
var agendaElearningGroup by base.config<Boolean>(true)
|
|
|
|
var homeCards by base.config<List<HomeCardModel>> { listOf() }
|
|
|
|
var messagesGreetingOnCompose by base.config<Boolean>(true)
|
|
var messagesGreetingOnReply by base.config<Boolean>(true)
|
|
var messagesGreetingOnForward by base.config<Boolean>(false)
|
|
var messagesGreetingText by base.config<String?>(null)
|
|
|
|
var timetableShowAttendance by base.config<Boolean>(true)
|
|
var timetableShowEvents by base.config<Boolean>(true)
|
|
var timetableTrimHourRange by base.config<Boolean>(false)
|
|
var timetableColorSubjectName by base.config<Boolean>(false)
|
|
}
|