This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree 3 files changed +4
-7
lines changed
screen/categories/src/main/java/com/ivy/categories
shared/domain/src/main/java/com/ivy/domain/features
temp/legacy-code/src/main/java/com/ivy/legacy/ui
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ class CategoriesViewModel @Inject constructor(
80
80
)
81
81
}
82
82
83
-
84
83
@Composable
85
84
private fun getCompactCategoriesMode (): Boolean {
86
85
return features.compactCategoriesMode.asEnabledState()
@@ -191,7 +190,7 @@ class CategoriesViewModel @Inject constructor(
191
190
}
192
191
193
192
private fun filterCategories (queryString : String ) {
194
- var unsortedList : List <CategoryData >
193
+ var unsortedList: List <CategoryData >
195
194
if (queryString.isNotEmpty()) {
196
195
unsortedList = this .allCategories.value.filter {
197
196
it.category.name.value.toLowerCase().contains(queryString.toLowerCase().trim())
@@ -200,7 +199,7 @@ class CategoriesViewModel @Inject constructor(
200
199
} else {
201
200
unsortedList = this .allCategories.value
202
201
}
203
- this .categories.value = sortList(unsortedList, sortOrder.value).toImmutableList()
202
+ this .categories.value = sortList(unsortedList, sortOrder.value).toImmutableList()
204
203
}
205
204
206
205
private suspend fun reorder (
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ class IvyFeatures @Inject constructor() : Features {
32
32
defaultValue = true
33
33
)
34
34
35
-
36
35
override val showCategorySearchBar = BoolFeature (
37
36
key = " show_category_search_bar" ,
38
37
name = " Show category search bar" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ fun SearchInput(
29
29
searchQueryTextFieldValue : TextFieldValue ,
30
30
hint : String ,
31
31
focus : Boolean = true,
32
- showClearIcon : Boolean = true,
32
+ showClearIcon : Boolean = true,
33
33
onSetSearchQueryTextField : (TextFieldValue ) -> Unit
34
34
) {
35
35
Row (
@@ -62,7 +62,7 @@ fun SearchInput(
62
62
}
63
63
}
64
64
65
- if (showClearIcon){
65
+ if (showClearIcon) {
66
66
IvyIcon (
67
67
modifier = Modifier
68
68
.weight(1f )
@@ -72,6 +72,5 @@ fun SearchInput(
72
72
icon = R .drawable.ic_outline_clear_24
73
73
)
74
74
}
75
-
76
75
}
77
76
}
You can’t perform that action at this time.
0 commit comments