Fixed using lambda
This commit is contained in:
parent
2a12b7bdcd
commit
c3eec2e8bc
|
@ -19,13 +19,7 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
setContentView(R.layout.activity_main)
|
||||
|
||||
findViewById<Button>(R.id.btnGenerateQrCode)?.setOnClickListener(object : View.OnClickListener { // don't know why Lambda is not working anymore
|
||||
|
||||
override fun onClick(p0: View?) {
|
||||
generateQrCode()
|
||||
}
|
||||
|
||||
})
|
||||
findViewById<Button>(R.id.btnGenerateQrCode)?.setOnClickListener { generateQrCode() }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue