Remove usages of Observable.empty() (#3479)

This commit is contained in:
Mike 2020-06-10 17:09:01 -04:00 committed by GitHub
parent 1ad4002be9
commit 3fa06f5eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Existential Comics'
pkgNameSuffix = 'en.existentialcomics'
extClass = '.ExistentialComics'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -36,7 +36,7 @@ class ExistentialComics : ParsedHttpSource() {
return Observable.just(MangasPage(arrayListOf(manga), false))
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.just(MangasPage(emptyList(), false))
override fun fetchMangaDetails(manga: SManga) = Observable.just(manga)

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Gunnerkrigg Court'
pkgNameSuffix = 'en.gunnerkriggcourt'
extClass = '.GunnerkriggCourt'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -40,7 +40,7 @@ class GunnerkriggCourt : ParsedHttpSource() {
return Observable.just(MangasPage(arrayListOf(manga).reversed(), false))
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.just(MangasPage(emptyList(), false))
override fun fetchMangaDetails(manga: SManga): Observable<SManga> {
return Observable.just(manga)

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Questionable Content'
pkgNameSuffix = 'en.questionablecontent'
extClass = '.QuestionableContent'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
}

View File

@ -36,7 +36,7 @@ class QuestionableContent : ParsedHttpSource() {
return Observable.just(MangasPage(arrayListOf(manga), false))
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.just(MangasPage(emptyList(), false))
override fun fetchMangaDetails(manga: SManga) = Observable.just(manga)

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: xkcd'
pkgNameSuffix = 'en.xkcd'
extClass = '.Xkcd'
extVersionCode = 7
extVersionCode = 8
libVersion = '1.2'
}

View File

@ -37,7 +37,7 @@ class Xkcd : ParsedHttpSource() {
return Observable.just(MangasPage(arrayListOf(manga), false))
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.just(MangasPage(emptyList(), false))
override fun fetchMangaDetails(manga: SManga): Observable<SManga> = fetchPopularManga(1)
.map { it.mangas.first().apply { initialized = true } }