mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 05:09:00 +00:00
mystery item dialog improvements
This commit is contained in:
parent
e0a312bb02
commit
823cc9d58c
3 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
|||
android:id="@+id/title_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/SectionTitle"
|
||||
style="@style/Subheader2"
|
||||
android:gravity="center_horizontal"/>
|
||||
<TextView
|
||||
android:id="@+id/description_view"
|
||||
|
|
|
|||
|
|
@ -1138,6 +1138,6 @@
|
|||
<string name="twelve_months_one_time">12 month one-time subscription</string>
|
||||
<string name="sidebar_teams">Teams</string>
|
||||
<string name="team_information">Team Information</string>
|
||||
<string name="mystery_item_title">You open the box and find…</string>
|
||||
<string name="mystery_item_title">You open the Mystery Box and find…</string>
|
||||
<string name="cant_like_own_message">Can\'t like your own messages.</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ class ItemRecyclerFragment : BaseFragment<FragmentItemsBinding>(), SwipeRefreshL
|
|||
}, RxErrorHandler.handleEmptyError()))
|
||||
compositeSubscription.add(adapter.getOpenMysteryItemFlowable()
|
||||
.flatMap { inventoryRepository.openMysteryItem(user) }
|
||||
.flatMap { inventoryRepository.getEquipment(it.key ?: "") }
|
||||
.doOnNext {
|
||||
val activity = activity as? MainActivity
|
||||
if (activity != null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue