mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 07:56:30 +00:00
1. #36. URL default value fix
This commit is contained in:
parent
5a4074b868
commit
22db3c2343
@ -8,7 +8,7 @@ android {
|
|||||||
applicationId "io.github.chronosx88.yggdrasil"
|
applicationId "io.github.chronosx88.yggdrasil"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 9
|
versionCode 10
|
||||||
versionName "1.6"
|
versionName "1.6"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
|
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
|
||||||
|
@ -213,8 +213,10 @@ class PeerListActivity : AppCompatActivity() {
|
|||||||
ab.setCancelable(true).setView(view)
|
ab.setCancelable(true).setView(view)
|
||||||
var ad = ab.show()
|
var ad = ab.show()
|
||||||
var saveButton = view.findViewById<Button>(R.id.save)
|
var saveButton = view.findViewById<Button>(R.id.save)
|
||||||
|
var urlInput = view.findViewById<TextView>(R.id.urlInput)
|
||||||
|
urlInput.text = peerListUrl
|
||||||
saveButton.setOnClickListener{
|
saveButton.setOnClickListener{
|
||||||
var urlInput = view.findViewById<TextView>(R.id.urlInput)
|
|
||||||
var url = urlInput.text.toString()
|
var url = urlInput.text.toString()
|
||||||
if(!URLUtil.isValidUrl(url)){
|
if(!URLUtil.isValidUrl(url)){
|
||||||
urlInput.error = "The URL is invalid!"
|
urlInput.error = "The URL is invalid!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user