<How to add multiple events in one button Kotlin?>...
# stackoverflow
u
How to add multiple events in one button Kotlin? I want to pick and upload image from gallery with one button in the same time for Firebase. But the first when i clicked the button it picked up image and the second time when i clicked it uploads. How can i fix it that when i clicked it should be go to gallery and save to Firebase Storage idgir.setOnLongClickListener { if (ContextCompat.checkSelfPermission( this, Manifest.permission.READ_EXTERNAL_STORAGE )...