mirror of
https://github.com/Corewala/Buran
synced 2025-03-15 08:29:15 +00:00
Lock addressbar if launched with no internet
This commit is contained in:
parent
791fabca74
commit
972ff95ecd
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ import android.net.ConnectivityManager
|
|||
import android.net.NetworkCapabilities
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.text.InputType
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.WindowManager
|
||||
|
@ -183,6 +184,7 @@ class GemActivity : AppCompatActivity() {
|
|||
}else{
|
||||
loadingView(false)
|
||||
Snackbar.make(binding.root, getString(R.string.no_internet), Snackbar.LENGTH_LONG).show()
|
||||
binding.addressEdit.inputType = InputType.TYPE_NULL
|
||||
}
|
||||
|
||||
binding.addressEdit.setOnEditorActionListener { _, actionId, _ ->
|
||||
|
|
Loading…
Add table
Reference in a new issue