diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/models/config/DropDownAdapter.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/models/config/DropDownAdapter.kt index c461e4b..f98fa33 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/models/config/DropDownAdapter.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/models/config/DropDownAdapter.kt @@ -23,9 +23,10 @@ class DropDownAdapter( ) : ArrayAdapter(context, textViewResourceId, objects), OnItemClickListener { - private val objects: Array - private val popup: PopupWindow - private val editText: TextView + private val objects: Array = objects + private val popup: PopupWindow = popup + private val editText: TextView = editText + override fun getDropDownView(position: Int, convertView: View?, parent: ViewGroup?): View? { return getCustomView(position, convertView, parent) } @@ -61,9 +62,4 @@ class DropDownAdapter( editText.text = address } - init { - this.objects = objects - this.popup = popup - this.editText = editText - } } \ No newline at end of file