mirror of
https://github.com/Corewala/Buran
synced 2025-03-15 08:29:15 +00:00
Removed redundant internet check
This commit is contained in:
parent
980a1ac4d5
commit
84af7e4588
1 changed files with 5 additions and 9 deletions
|
@ -99,16 +99,12 @@ class GemActivity : AppCompatActivity() {
|
|||
startActivity(Intent.createChooser(this, null))
|
||||
}
|
||||
}else{
|
||||
if(getInternetStatus()){
|
||||
//Reset input text hint after user has been searching
|
||||
if(inSearch) {
|
||||
binding.addressEdit.hint = getString(R.string.main_input_hint)
|
||||
inSearch = false
|
||||
}
|
||||
omniTerm.navigation(uri.toString())
|
||||
}else{
|
||||
Snackbar.make(binding.root, getString(R.string.no_internet), Snackbar.LENGTH_LONG).show()
|
||||
//Reset input text hint after user has been searching
|
||||
if(inSearch) {
|
||||
binding.addressEdit.hint = getString(R.string.main_input_hint)
|
||||
inSearch = false
|
||||
}
|
||||
omniTerm.navigation(uri.toString())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue