diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java index 21fc527..63634cf 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java @@ -120,7 +120,7 @@ public class BookListFragment extends BaseFragment { } void displayLanguageSpinner() { - ArrayAdapter adapter = new ArrayAdapter(this.getActivity(), + ArrayAdapter adapter = new ArrayAdapter<>(this.getActivity(), android.R.layout.simple_spinner_item, availableLanguages.toArray()); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); @@ -166,6 +166,12 @@ public class BookListFragment extends BaseFragment { return book.getBookCategory() == category; } }) + .filter(new Func1() { + @Override + public Boolean call(Book book) { + return book.getLanguage() != null; + } + }) .filter(new Func1() { @Override public Boolean call(Book book) {