1
0
Fork 0

Merge pull request #68 from astra1dev/patch-1

add error callback when checking for updates
This commit is contained in:
nin0dev 2024-08-18 07:55:50 -04:00 committed by GitHub
commit f625d5b4f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,13 @@ class MainActivity : Activity() {
showDiscordToast("No updates available", "MESSAGE")
}
},
{ })
{ error ->
if (BuildConfig.DEBUG) {
e("Network error during update check", error)
}
Toast.makeText(this, "Failed to check for updates", Toast.LENGTH_SHORT).show()
}
)
stringRequest.setShouldCache(false);
queue.add(stringRequest)
}