@@ -32,18 +32,34 @@ fun LibraryBottomSheet(
32
32
.fillMaxWidth()
33
33
.padding(horizontal = 32 .dp),
34
34
) {
35
- Text (text = " Filters" , style = MaterialTheme .typography.titleLarge)
36
-
37
- Spacer (modifier = Modifier .height(18 .dp))
35
+ Text (text = " App Type" , style = MaterialTheme .typography.titleLarge)
36
+ Spacer (modifier = Modifier .height(8 .dp))
37
+ FlowRow {
38
+ AppFilter .entries.forEach { appFilter ->
39
+ // TODO properly fix this (and the one below)
40
+ if (appFilter.code !in listOf (0x01 , 0x20 )) {
41
+ FlowFilterChip (
42
+ onClick = { onFilterChanged(appFilter) },
43
+ label = { Text (text = appFilter.displayText) },
44
+ selected = selectedFilters.contains(appFilter),
45
+ leadingIcon = { Icon (imageVector = appFilter.icon, contentDescription = null ) },
46
+ )
47
+ }
48
+ }
49
+ }
38
50
51
+ Text (text = " App Status" , style = MaterialTheme .typography.titleLarge)
52
+ Spacer (modifier = Modifier .height(8 .dp))
39
53
FlowRow {
40
54
AppFilter .entries.forEach { appFilter ->
41
- FlowFilterChip (
42
- onClick = { onFilterChanged(appFilter) },
43
- label = { Text (text = appFilter.displayText) },
44
- selected = selectedFilters.contains(appFilter),
45
- leadingIcon = { Icon (imageVector = appFilter.icon, contentDescription = null ) },
46
- )
55
+ if (appFilter.code in listOf (0x01 , 0x20 )) {
56
+ FlowFilterChip (
57
+ onClick = { onFilterChanged(appFilter) },
58
+ label = { Text (text = appFilter.displayText) },
59
+ selected = selectedFilters.contains(appFilter),
60
+ leadingIcon = { Icon (imageVector = appFilter.icon, contentDescription = null ) },
61
+ )
62
+ }
47
63
}
48
64
}
49
65
0 commit comments