Build fixes after cherry picking

This commit is contained in:
Jobobby04
2021-12-02 20:44:05 -05:00
parent 85207b1d2d
commit 42da9abe3e
15 changed files with 39 additions and 37 deletions
+2 -2
View File
@@ -18,9 +18,9 @@ private val galleryAdder by lazy {
fun UrlImportableSource.urlImportFetchSearchManga(context: Context, query: String, fail: () -> Observable<MangasPage>): Observable<MangasPage> =
when {
query.startsWith("http://") || query.startsWith("https://") -> {
runAsObservable({
runAsObservable {
galleryAdder.addGallery(context, query, false, this@urlImportFetchSearchManga)
})
}
.map { res ->
MangasPage(
if (res is GalleryAddEvent.Success) {