mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-17 19:29:02 +00:00
two small fixes
This commit is contained in:
parent
4bb1e3afc0
commit
3ea2baa772
2 changed files with 6 additions and 4 deletions
|
|
@ -151,6 +151,11 @@ class TaskFormActivity : BaseActivity() {
|
|||
|
||||
private var isDiscardCancelled: Boolean = false
|
||||
private var canSave: Boolean = false
|
||||
set(value) {
|
||||
if (field == value) return
|
||||
field = value
|
||||
invalidateOptionsMenu()
|
||||
}
|
||||
|
||||
private var tintColor: Int = 0
|
||||
set(value) {
|
||||
|
|
@ -449,9 +454,6 @@ class TaskFormActivity : BaseActivity() {
|
|||
|
||||
private fun checkCanSave() {
|
||||
val newCanSave = binding.textEditText.text?.isNotBlank() == true
|
||||
if (newCanSave != canSave) {
|
||||
invalidateOptionsMenu()
|
||||
}
|
||||
canSave = newCanSave
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ class PurchaseDialog(context: Context, component: UserComponent?, val item: Shop
|
|||
rightText = "-" + priceLabel.text
|
||||
)
|
||||
inventoryRepository.retrieveInAppRewards()
|
||||
userRepository.retrieveUser()
|
||||
userRepository.retrieveUser(forced = true)
|
||||
if (item.isTypeGear || item.currency == "hourglasses") {
|
||||
onGearPurchased?.invoke(item)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue