mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 13:48:55 +00:00
correctly show “wear costume” state. Fixes #930
This commit is contained in:
parent
304c705a5e
commit
0b020bb198
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class EquipmentOverviewFragment : BaseMainFragment() {
|
|||
costumeWeaponView.setOnClickListener { displayEquipmentDetailList("weapon", user?.items?.gear?.costume?.weapon, true) }
|
||||
costumeShieldView.setOnClickListener { displayEquipmentDetailList("shield", user?.items?.gear?.costume?.shield, true) }
|
||||
|
||||
costumeSwitch.isSelected = user?.preferences?.costume ?: false
|
||||
costumeSwitch.isChecked = user?.preferences?.costume ?: false
|
||||
|
||||
costumeSwitch.setOnCheckedChangeListener { _, isChecked -> userRepository.updateUser(user, "preferences.costume", isChecked).subscribe(Action1 { }, RxErrorHandler.handleEmptyError()) }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue