Fixed using lambda

This commit is contained in:
dankito 2023-04-11 02:20:32 +02:00
parent 2a12b7bdcd
commit c3eec2e8bc
1 changed files with 1 additions and 7 deletions

View File

@ -19,13 +19,7 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main) setContentView(R.layout.activity_main)
findViewById<Button>(R.id.btnGenerateQrCode)?.setOnClickListener(object : View.OnClickListener { // don't know why Lambda is not working anymore findViewById<Button>(R.id.btnGenerateQrCode)?.setOnClickListener { generateQrCode() }
override fun onClick(p0: View?) {
generateQrCode()
}
})
} }