mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 04:09:03 +00:00
change preference model
This commit is contained in:
parent
b4036d6902
commit
f2a87dbe84
1 changed files with 4 additions and 10 deletions
|
|
@ -15,15 +15,9 @@ open class Preferences : RealmObject(), AvatarPreferences {
|
|||
private var hair: Hair? = null
|
||||
var suppressModals: SuppressedModals? = null
|
||||
private var costume: Boolean = false
|
||||
var toolbarCollapsed: Boolean = false
|
||||
var advancedCollapsed: Boolean = false
|
||||
var tagsCollapsed: Boolean = false
|
||||
var newTaskEdit: Boolean = false
|
||||
var isDisableClasses: Boolean = false
|
||||
var stickyHeader: Boolean = false
|
||||
@SerializedName("sleep")
|
||||
var isSleep: Boolean = false
|
||||
var hideHeader: Boolean = false
|
||||
var dailyDueDefaultView: Boolean = false
|
||||
var automaticAllocation: Boolean = false
|
||||
var allocationMode: String? = null
|
||||
|
|
@ -113,11 +107,11 @@ open class Preferences : RealmObject(), AvatarPreferences {
|
|||
|
||||
fun setUserId(userId: String) {
|
||||
this.userId = userId
|
||||
if (hair != null && !hair!!.isManaged) {
|
||||
hair!!.userId = userId
|
||||
if (hair?.isManaged == false) {
|
||||
hair?.userId = userId
|
||||
}
|
||||
if (suppressModals != null && !suppressModals!!.isManaged) {
|
||||
suppressModals!!.userId = userId
|
||||
if (suppressModals?.isManaged == false) {
|
||||
suppressModals?.userId = userId
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue