mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-24 22:55:59 +00:00
Show insufficient hourglasses modal if subscribed
Show insufficient hourglasses modal if subscribed when attempting to purchase item without enough hourglasses
This commit is contained in:
parent
773038804c
commit
8de7b52f44
1 changed files with 1 additions and 1 deletions
|
|
@ -372,7 +372,7 @@ class PurchaseDialog(
|
|||
parentActivity?.let { activity -> InsufficientGemsDialog(activity, shopItem.value).show() }
|
||||
}
|
||||
"hourglasses" == shopItem.currency -> {
|
||||
if ((user?.hourglassCount?.toDouble() ?: 0.0) > 0.0) {
|
||||
if (user?.isSubscribed == true) {
|
||||
InsufficientHourglassesDialog(context).show()
|
||||
} else {
|
||||
val subscriptionBottomSheet = EventOutcomeSubscriptionBottomSheetFragment().apply {
|
||||
|
|
|
|||
Loading…
Reference in a new issue