Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit caf54d4

Browse files
committed
fix-issue-3488
1 parent 5382191 commit caf54d4

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Diff for: screen/categories/src/main/java/com/ivy/categories/CategoriesViewModel.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ class CategoriesViewModel @Inject constructor(
8080
)
8181
}
8282

83-
8483
@Composable
8584
private fun getCompactCategoriesMode(): Boolean {
8685
return features.compactCategoriesMode.asEnabledState()
@@ -191,7 +190,7 @@ class CategoriesViewModel @Inject constructor(
191190
}
192191

193192
private fun filterCategories(queryString: String) {
194-
var unsortedList : List<CategoryData>
193+
var unsortedList: List<CategoryData>
195194
if (queryString.isNotEmpty()) {
196195
unsortedList = this.allCategories.value.filter {
197196
it.category.name.value.toLowerCase().contains(queryString.toLowerCase().trim())
@@ -200,7 +199,7 @@ class CategoriesViewModel @Inject constructor(
200199
} else {
201200
unsortedList = this.allCategories.value
202201
}
203-
this.categories.value = sortList(unsortedList, sortOrder.value).toImmutableList()
202+
this.categories.value = sortList(unsortedList, sortOrder.value).toImmutableList()
204203
}
205204

206205
private suspend fun reorder(

Diff for: shared/domain/src/main/java/com/ivy/domain/features/IvyFeatures.kt

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class IvyFeatures @Inject constructor() : Features {
3232
defaultValue = true
3333
)
3434

35-
3635
override val showCategorySearchBar = BoolFeature(
3736
key = "show_category_search_bar",
3837
name = "Show category search bar",

Diff for: temp/legacy-code/src/main/java/com/ivy/legacy/ui/SearchInput.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun SearchInput(
2929
searchQueryTextFieldValue: TextFieldValue,
3030
hint: String,
3131
focus: Boolean = true,
32-
showClearIcon : Boolean = true,
32+
showClearIcon: Boolean = true,
3333
onSetSearchQueryTextField: (TextFieldValue) -> Unit
3434
) {
3535
Row(
@@ -62,7 +62,7 @@ fun SearchInput(
6262
}
6363
}
6464

65-
if(showClearIcon){
65+
if (showClearIcon) {
6666
IvyIcon(
6767
modifier = Modifier
6868
.weight(1f)
@@ -72,6 +72,5 @@ fun SearchInput(
7272
icon = R.drawable.ic_outline_clear_24
7373
)
7474
}
75-
7675
}
7776
}

0 commit comments

Comments
 (0)