Repository navigation
[NMA-1085] (Explore Dash) Show all locations for merchant grouping - #830
Conversation
| @Query("DELETE FROM atm WHERE source LIKE :source") | ||
| override suspend fun deleteAll(source: String): Int | ||
|
|
||
| fun observePhysical( |
There was a problem hiding this comment.
Accessor methods moved to a separate class to simplify testing
| import org.dash.wallet.features.exploredash.data.model.* | ||
| import org.dash.wallet.features.exploredash.databinding.ItemDetailsViewBinding | ||
|
|
||
| class ItemDetails(context: Context, attrs: AttributeSet): LinearLayout(context, attrs) { |
There was a problem hiding this comment.
Code related to merchant/atm details is moved to a separate class to offload SearchFragment
| binding.searchResults.removeItemDecorationAt(0) | ||
| } | ||
|
|
||
| binding.searchResults.adapter = ConcatAdapter(header, merchantLocationsAdapter) |
There was a problem hiding this comment.
Because of BottomSheet behaviour issues, we have to use one RecyclerView for both search results and merchant locations.
| app:layout_constraintTop_toBottomOf="@id/find_merchant_icon" | ||
| app:layout_constraintStart_toStartOf="@id/left_guideline" | ||
| app:srcCompat="@drawable/ic_explore_info_screen_gift_card_blue" | ||
| android:src="@drawable/ic_gift_card" |
There was a problem hiding this comment.
Removed some duplicated resources
There was a problem hiding this comment.
since we are not supporting Android 4.4 anymore, then app:srcCompat is not necessary?
There was a problem hiding this comment.
Correct, hence I'm not using it in the refactored code.
| <dimen name="atm_details_height_ratio">0.55</dimen> | ||
| <dimen name="atm_manufacturer_vertical_margin">12dp</dimen> | ||
| <dimen name="atm_content_vertical_margin">72dp</dimen> | ||
| </resources> No newline at end of file |
There was a problem hiding this comment.
Added separate dimensions for smaller screens
When opening the closest location from the grouped list of merchants, we want to have an option to show all locations of this merchant.
Issue being fixed or feature implemented
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: