mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
fix showing customizations
This commit is contained in:
parent
76153d7f06
commit
4ebf99117e
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ open class Customization : RealmObject(), BaseObject {
|
|||
|
||||
fun getImageName(userSize: String?, hairColor: String?): String? {
|
||||
if (identifier?.isNotBlank() != true || identifier == "none" || identifier == "0") return null
|
||||
when (type) {
|
||||
return when (type) {
|
||||
"skin" -> return "skin_$identifier"
|
||||
"shirt" -> return userSize + "_shirt_" + identifier
|
||||
"hair" -> {
|
||||
|
|
@ -64,8 +64,8 @@ open class Customization : RealmObject(), BaseObject {
|
|||
}
|
||||
"background" -> return "background_$identifier"
|
||||
"chair" -> return "chair_$identifier"
|
||||
else -> null
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
fun isUsable(purchased: Boolean): Boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue