mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
Fix issue with gem display
This commit is contained in:
parent
4562ac3d10
commit
aad726ecf5
3 changed files with 5 additions and 7 deletions
|
|
@ -152,7 +152,7 @@ android {
|
|||
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
|
||||
|
||||
versionCode 2336
|
||||
versionName "2.4"
|
||||
versionName "2.4.1"
|
||||
}
|
||||
|
||||
viewBinding {
|
||||
|
|
|
|||
|
|
@ -86,11 +86,9 @@ class CurrencyView : androidx.appcompat.widget.AppCompatTextView {
|
|||
|
||||
var value = 0.0
|
||||
set(value) {
|
||||
if (field != value) {
|
||||
field = value
|
||||
text = NumberAbbreviator.abbreviate(context, value)
|
||||
updateVisibility()
|
||||
}
|
||||
field = value
|
||||
text = NumberAbbreviator.abbreviate(context, value)
|
||||
updateVisibility()
|
||||
}
|
||||
|
||||
var isLocked = false
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class CurrencyViews : LinearLayout {
|
|||
get() = goldTextView.value
|
||||
set(value) { goldTextView.value = value }
|
||||
var gems: Double
|
||||
get() = goldTextView.value
|
||||
get() = gemTextView.value
|
||||
set(value) { gemTextView.value = value }
|
||||
var hourglasses: Double
|
||||
get() = hourglassTextView.value
|
||||
|
|
|
|||
Loading…
Reference in a new issue