mihon/source-api
Two-Ai b4b3a4d286
Fixup HttpPageLoader _loadPage (#8984)
Fixup for e4bc8990 (#8955)

HttpSource.fetchImage() uses Call.asObservableSuccess(), which
cancels the call on unsubscribe. This causes the call to be cancelled
before it is used, leading to a "java.net.SocketException: Socket is
closed" when trying to use the response in putImageToCache().

To fix this, use Call.awaitSuccess() via a new HttpSource.getImage()
suspending function. This addition to source-api is only intended for
app use, so it will not be added to the extensions-api stubs.
2023-01-25 18:18:12 -05:00
..
src/main Fixup HttpPageLoader _loadPage (#8984) 2023-01-25 18:18:12 -05:00
.gitignore Extract source api from app module (#8014) 2022-09-15 18:12:27 -04:00
build.gradle.kts Move shared configuration to subprojects in root Gradle file (#8951) 2023-01-20 23:04:22 -05:00
consumer-proguard.pro Adjust source-api R8 rules (#8064) 2022-09-24 10:13:58 -04:00