mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-25 23:26:01 +00:00
Add transformation item name on toast after use
This commit is contained in:
parent
546a765cb1
commit
ac38f9c30f
1 changed files with 4 additions and 1 deletions
|
|
@ -191,7 +191,10 @@ class ItemRecyclerAdapter(val context: Context) : BaseRecyclerViewAdapter<OwnedI
|
|||
if (item == null && ownedItem != null) {
|
||||
//Special items that are not Mystery Item
|
||||
val specialItem = SpecialItem()
|
||||
ownedItem?.key?.let { key -> specialItem.key = key }
|
||||
ownedItem?.key?.let { key ->
|
||||
specialItem.key = key
|
||||
specialItem.text = key.localizedCapitalizeWithSpaces()
|
||||
}
|
||||
onUseSpecialItem?.invoke(specialItem)
|
||||
return@setSelectionRunnable
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue