Merge pull request #68 from astra1dev/patch-1
add error callback when checking for updates
This commit is contained in:
commit
f625d5b4f7
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue