mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-08-15 06:01:58 +00:00
Add: Favorites category
This commit is contained in:
@@ -120,12 +120,14 @@ class ExploreFragment : MainNavFragmentX() {
|
||||
CategoryChipList(
|
||||
list = listOf(
|
||||
stringResource(id = R.string.all_applications),
|
||||
stringResource(id = R.string.favorite_applications),
|
||||
*categories.sorted().toTypedArray()
|
||||
)
|
||||
) {
|
||||
viewModel.sections.postValue(
|
||||
when (it) {
|
||||
getString(R.string.all_applications) -> Section.All
|
||||
getString(R.string.favorite_applications) -> Section.FAVORITE
|
||||
else -> Section.Category(it)
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user