mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +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
|
observable
|
||||||
.doOnNext {
|
.doOnNext {
|
||||||
val event = ShowSnackbarEvent()
|
val event = ShowSnackbarEvent()
|
||||||
event.title = context.getString(R.string.successful_purchase, shopItem.text)
|
|
||||||
if (snackbarText[0].isNotEmpty()) {
|
if (snackbarText[0].isNotEmpty()) {
|
||||||
|
event.title = context.getString(R.string.successful_purchase, shopItem.text)
|
||||||
event.text = snackbarText[0]
|
event.text = snackbarText[0]
|
||||||
|
} else {
|
||||||
|
event.text = context.getString(R.string.successful_purchase, shopItem.text)
|
||||||
}
|
}
|
||||||
event.type = HabiticaSnackbar.SnackbarDisplayType.NORMAL
|
event.type = HabiticaSnackbar.SnackbarDisplayType.NORMAL
|
||||||
event.rightIcon = priceLabel.compoundDrawables[0]
|
event.rightIcon = priceLabel.compoundDrawables[0]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue