mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +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? {
|
fun getImageName(userSize: String?, hairColor: String?): String? {
|
||||||
if (identifier?.isNotBlank() != true || identifier == "none" || identifier == "0") return null
|
if (identifier?.isNotBlank() != true || identifier == "none" || identifier == "0") return null
|
||||||
when (type) {
|
return when (type) {
|
||||||
"skin" -> return "skin_$identifier"
|
"skin" -> return "skin_$identifier"
|
||||||
"shirt" -> return userSize + "_shirt_" + identifier
|
"shirt" -> return userSize + "_shirt_" + identifier
|
||||||
"hair" -> {
|
"hair" -> {
|
||||||
|
|
@ -64,8 +64,8 @@ open class Customization : RealmObject(), BaseObject {
|
||||||
}
|
}
|
||||||
"background" -> return "background_$identifier"
|
"background" -> return "background_$identifier"
|
||||||
"chair" -> return "chair_$identifier"
|
"chair" -> return "chair_$identifier"
|
||||||
|
else -> null
|
||||||
}
|
}
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun isUsable(purchased: Boolean): Boolean {
|
fun isUsable(purchased: Boolean): Boolean {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue