add error callback when checking for updates
This commit is contained in:
parent
3d89b9603d
commit
98b375a096
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue