Fix crash when searching in the library
This commit is contained in:
parent
19eeb18d0d
commit
fbf141aad8
1 changed files with 3 additions and 3 deletions
|
@ -42,9 +42,9 @@ public class LibraryAdapter<T> extends EasyAdapter<T> implements Filterable {
|
||||||
} else {
|
} else {
|
||||||
List<Manga> filteredMangas = Observable.from(mangas)
|
List<Manga> filteredMangas = Observable.from(mangas)
|
||||||
.filter(x ->
|
.filter(x ->
|
||||||
x.title.toLowerCase().contains(query) ||
|
(x.title != null && x.title.toLowerCase().contains(query)) ||
|
||||||
x.author.toLowerCase().contains(query) ||
|
(x.author != null && x.author.toLowerCase().contains(query)) ||
|
||||||
x.artist.toLowerCase().contains(query))
|
(x.artist != null && x.artist.toLowerCase().contains(query)))
|
||||||
.toList()
|
.toList()
|
||||||
.toBlocking()
|
.toBlocking()
|
||||||
.single();
|
.single();
|
||||||
|
|
Reference in a new issue