mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 16:06:30 +00:00
2. small fixes
This commit is contained in:
parent
61f54fefc6
commit
234dcbef77
@ -23,9 +23,10 @@ class DropDownAdapter(
|
|||||||
) :
|
) :
|
||||||
ArrayAdapter<String?>(context, textViewResourceId, objects), OnItemClickListener {
|
ArrayAdapter<String?>(context, textViewResourceId, objects), OnItemClickListener {
|
||||||
|
|
||||||
private val objects: Array<String>
|
private val objects: Array<String> = objects
|
||||||
private val popup: PopupWindow
|
private val popup: PopupWindow = popup
|
||||||
private val editText: TextView
|
private val editText: TextView = editText
|
||||||
|
|
||||||
override fun getDropDownView(position: Int, convertView: View?, parent: ViewGroup?): View? {
|
override fun getDropDownView(position: Int, convertView: View?, parent: ViewGroup?): View? {
|
||||||
return getCustomView(position, convertView, parent)
|
return getCustomView(position, convertView, parent)
|
||||||
}
|
}
|
||||||
@ -61,9 +62,4 @@ class DropDownAdapter(
|
|||||||
editText.text = address
|
editText.text = address
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
|
||||||
this.objects = objects
|
|
||||||
this.popup = popup
|
|
||||||
this.editText = editText
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user