mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 14:31:50 +01:00
Fix reorder filter crash
This commit is contained in:
parent
2670f9b6a4
commit
10a701c211
@ -43,7 +43,10 @@ class LibraryDisplayView @JvmOverloads constructor(context: Context, attrs: Attr
|
||||
filterOrder = FilterBottomSheet.Filters.DEFAULT_ORDER
|
||||
}
|
||||
val adapter = FlexibleAdapter(
|
||||
filterOrder.toCharArray().map(::ManageFilterItem),
|
||||
filterOrder.toCharArray().map {
|
||||
if (FilterBottomSheet.Filters.filterOf(it) != null) ManageFilterItem(it)
|
||||
else null
|
||||
}.filterNotNull(),
|
||||
this,
|
||||
true
|
||||
)
|
||||
|
@ -519,7 +519,7 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri
|
||||
Completed,
|
||||
SeriesType,
|
||||
Tracked
|
||||
).joinToString("")
|
||||
).joinToString("") { it.value.toString() }
|
||||
|
||||
fun filterOf(char: Char): Filters? {
|
||||
return Filters::class.java.enumConstants?.find { it.value == char }
|
||||
|
Loading…
Reference in New Issue
Block a user