mirror of
https://github.com/Corewala/Buran
synced 2025-01-02 21:24:19 +00:00
Check if internet is available before attempting to load new capsule
This commit is contained in:
parent
972ff95ecd
commit
508d1f39e6
1 changed files with 6 additions and 2 deletions
|
@ -68,8 +68,12 @@ class GemActivity : AppCompatActivity() {
|
|||
|
||||
private val omniTerm = OmniTerm(object : OmniTerm.Listener {
|
||||
override fun request(address: String) {
|
||||
if(getInternetStatus()){
|
||||
loadingView(true)
|
||||
model.request(address)
|
||||
}else{
|
||||
Snackbar.make(binding.root, getString(R.string.no_internet), Snackbar.LENGTH_LONG).show()
|
||||
}
|
||||
}
|
||||
|
||||
override fun openBrowser(address: String) = openWebLink(address)
|
||||
|
|
Loading…
Reference in a new issue