mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-23 06:08:52 +01:00
Use Intent.createChooser when trying to add attachment
This commit is contained in:
@@ -269,7 +269,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
|
|
||||||
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
|
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
|
||||||
.putExtra(MediaStore.EXTRA_OUTPUT, cameraDestination)
|
.putExtra(MediaStore.EXTRA_OUTPUT, cameraDestination)
|
||||||
startActivityForResult(intent, CAMERA_REQUEST_CODE)
|
startActivityForResult(Intent.createChooser(intent, null), CAMERA_REQUEST_CODE)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun requestGallery() {
|
override fun requestGallery() {
|
||||||
@@ -279,7 +279,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
.putExtra(Intent.EXTRA_LOCAL_ONLY, false)
|
.putExtra(Intent.EXTRA_LOCAL_ONLY, false)
|
||||||
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||||
.setType("image/*")
|
.setType("image/*")
|
||||||
startActivityForResult(intent, GALLERY_REQUEST_CODE)
|
startActivityForResult(Intent.createChooser(intent, null), GALLERY_REQUEST_CODE)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setDraft(draft: String) {
|
override fun setDraft(draft: String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user