Make default category translatable (#5751)

* Make default category translatable

* Replace duplicate strings with common one
This commit is contained in:
Andreas
2021-08-20 00:10:43 +02:00
committed by GitHub
parent 90ab04e81d
commit 3670d649b8
12 changed files with 22 additions and 28 deletions
@@ -327,7 +327,7 @@ class LibraryPresenter(
private fun getLibraryObservable(): Observable<Library> {
return Observable.combineLatest(getCategoriesObservable(), getLibraryMangasObservable()) { dbCategories, libraryManga ->
val categories = if (libraryManga.containsKey(0)) {
arrayListOf(Category.createDefault()) + dbCategories
arrayListOf(Category.createDefault(context)) + dbCategories
} else {
dbCategories
}