mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 22:09:16 +01:00
Fixed extensions call running on main thread
This commit is contained in:
parent
fa3adf6c37
commit
2b85bb5fb8
@ -29,7 +29,9 @@ internal class ExtensionGithubApi {
|
|||||||
suspend fun findExtensions(): List<Extension.Available> {
|
suspend fun findExtensions(): List<Extension.Available> {
|
||||||
val call = GET("$REPO_URL/index.json")
|
val call = GET("$REPO_URL/index.json")
|
||||||
|
|
||||||
return parseResponse(network.client.newCall(call).await())
|
return withContext(Dispatchers.IO) {
|
||||||
|
parseResponse(network.client.newCall(call).await())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun checkforUpdates(context: Context): List<Extension.Installed> {
|
suspend fun checkforUpdates(context: Context): List<Extension.Installed> {
|
||||||
|
Loading…
Reference in New Issue
Block a user