mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
tweak purchase confirmation design. Fixes #1042
This commit is contained in:
parent
7013dca5bb
commit
4fc0a5090a
1 changed files with 3 additions and 1 deletions
|
|
@ -243,9 +243,11 @@ class PurchaseDialog(context: Context, component: AppComponent?, val item: ShopI
|
|||
observable
|
||||
.doOnNext {
|
||||
val event = ShowSnackbarEvent()
|
||||
event.title = context.getString(R.string.successful_purchase, shopItem.text)
|
||||
if (snackbarText[0].isNotEmpty()) {
|
||||
event.title = context.getString(R.string.successful_purchase, shopItem.text)
|
||||
event.text = snackbarText[0]
|
||||
} else {
|
||||
event.text = context.getString(R.string.successful_purchase, shopItem.text)
|
||||
}
|
||||
event.type = HabiticaSnackbar.SnackbarDisplayType.NORMAL
|
||||
event.rightIcon = priceLabel.compoundDrawables[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue