1. #36. menu edit url layout fix.

This commit is contained in:
vadym 2020-12-07 09:26:55 +02:00
parent 0aa8e4629c
commit 6c97fe1dc4
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ android {
applicationId "io.github.chronosx88.yggdrasil"
minSdkVersion 15
targetSdkVersion 30
versionCode 7
versionCode 8
versionName "1.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)

View File

@ -79,7 +79,7 @@ class PeerListActivity : AppCompatActivity() {
var peerListUrl: String =
preferences.getString(PEER_LIST, "")!!
if(!peerListUrl.isNullOrBlank()){
peerListUrl = this@PeerListActivity.peerListUrl
this@PeerListActivity.peerListUrl = peerListUrl
}
var extras = intent.extras
var peerList = findViewById<ListView>(R.id.peerList)
@ -119,7 +119,7 @@ class PeerListActivity : AppCompatActivity() {
}
}
}
var json = downloadJson(peerListUrl)
var json = downloadJson(this@PeerListActivity.peerListUrl)
var countries = CCPCountry.getLibraryMasterCountriesEnglish()
val mapType: Type = object :
TypeToken<Map<String?, Map<String, Status>>>() {}.type
@ -349,7 +349,7 @@ class PeerListActivity : AppCompatActivity() {
}
val editUrl = menu.findItem(R.id.editUrlItem) as MenuItem
item.setActionView(R.layout.menu_edit_url)
editUrl.setActionView(R.layout.menu_edit_url)
val editUrlButton = editUrl
.actionView.findViewById<Button>(R.id.editUrlButton)
editUrlButton.setOnClickListener {