mirror of https://github.com/Corewala/Buran
Check if internet is available before opening a history entry
This commit is contained in:
parent
f54add615a
commit
8c7546f095
|
@ -268,7 +268,11 @@ class GemActivity : AppCompatActivity() {
|
||||||
this,
|
this,
|
||||||
db.history()
|
db.history()
|
||||||
) { historyAddress ->
|
) { historyAddress ->
|
||||||
model.request(historyAddress)
|
if(getInternetStatus()){
|
||||||
|
model.request(historyAddress)
|
||||||
|
}else{
|
||||||
|
Snackbar.make(binding.root, getString(R.string.no_internet), Snackbar.LENGTH_LONG).show()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
R.id.overflow_menu_about -> AboutDialog.show(this)
|
R.id.overflow_menu_about -> AboutDialog.show(this)
|
||||||
R.id.overflow_menu_settings -> {
|
R.id.overflow_menu_settings -> {
|
||||||
|
|
Loading…
Reference in New Issue