Use Intent.createChooser when trying to add attachment

This commit is contained in:
Moez Bhatti
2018-08-30 00:28:10 -04:00
parent 1781dca838
commit 49be09711f
@@ -269,7 +269,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
.putExtra(MediaStore.EXTRA_OUTPUT, cameraDestination)
startActivityForResult(intent, CAMERA_REQUEST_CODE)
startActivityForResult(Intent.createChooser(intent, null), CAMERA_REQUEST_CODE)
}
override fun requestGallery() {
@@ -279,7 +279,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
.putExtra(Intent.EXTRA_LOCAL_ONLY, false)
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
.setType("image/*")
startActivityForResult(intent, GALLERY_REQUEST_CODE)
startActivityForResult(Intent.createChooser(intent, null), GALLERY_REQUEST_CODE)
}
override fun setDraft(draft: String) {