This commit is contained in:
tom5079
2020-09-09 16:58:01 +09:00
parent 7f274fd238
commit cea3fb1e65

View File

@@ -1039,7 +1039,7 @@ class MainActivity : AppCompatActivity() {
}
else -> {
val result = doSearch(query).sorted()
downloads.filter { result.binarySearch(it) >= 0 }.also {
downloads.reversed().filter { result.binarySearch(it) >= 0 }.also {
totalItems = it.size
}
}
@@ -1052,7 +1052,7 @@ class MainActivity : AppCompatActivity() {
}
else -> {
val result = doSearch(query).sorted()
favorites.filter { result.binarySearch(it) >= 0 }.also {
favorites.reversed().filter { result.binarySearch(it) >= 0 }.also {
totalItems = it.size
}
}