mystery item dialog improvements

This commit is contained in:
Phillip Thelen 2021-02-05 12:29:52 +01:00
parent e0a312bb02
commit 823cc9d58c
3 changed files with 3 additions and 2 deletions

View file

@ -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"

View file

@ -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>

View file

@ -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) {