1
0
Fork 0

add error callback when checking for updates

This commit is contained in:
Astral✨ 2024-08-16 14:52:15 +02:00 committed by GitHub
parent 3d89b9603d
commit 98b375a096
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,11 @@ class MainActivity : Activity() {
showDiscordToast("No updates available", "MESSAGE") showDiscordToast("No updates available", "MESSAGE")
} }
}, },
{ }) { error ->
e("Network error during update check", error)
showDiscordToast("Failed to check for updates", "ERROR")
}
)
stringRequest.setShouldCache(false); stringRequest.setShouldCache(false);
queue.add(stringRequest) queue.add(stringRequest)
} }