element-hq / element-hq/element-android
Crash when trying to take photo and no photo app is available (or other issue?)
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- Avg merge
- 8d 20h
- Merged PRs (30d)
- 1
Description
### Steps to reproduce
1. Try to take a photo to send to a room
### Outcome
#### What did you expect?
I can take a photo
#### What happened instead?
crash
```
Thread: main, Exception: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list hasLabel(0) {U(content)}} (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2123)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1768)
at android.app.Activity.startActivityForResult(Activity.java:5410)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:2)
at androidx.core.app.ActivityCompat$Api16Impl.startActivityForResult(ActivityCompat.java:1)
at androidx.activity.ComponentActivity$2.onLaunch(ComponentActivity.java:36)
at androidx.activity.result.ActivityResultRegistry$2.launch(ActivityResultRegistry.java:3)
at androidx.fragment.app.Fragment$9.launch(Fragment.java:2)
at im.vector.lib.multipicker.CameraPicker.startWithExpectingFile(CameraPicker.kt:6)
at im.vector.app.features.attachments.AttachmentsHelper$openCamera$1.takePhoto(AttachmentsHelper.kt:1)
at im.vector.app.features.attachments.AttachmentsHelper.openCamera(AttachmentsHelper.kt:16)
at im.vector.app.features.home.room.detail.TimelineFragment.launchAttachmentProcess(TimelineFragment.kt:18)
at im.vector.app.features.home.room.detail.TimelineFragment.onTypeSelected(TimelineFragment.kt:2)
at im.vector.app.features.attachments.AttachmentTypeSelectorView$TypeClickListener.onClick(AttachmentTypeSelectorView.kt:2)
```
### Your phone model
_No response_
### Operating system version
Android 12
### Application version and app store
1.4.25 and lower
### Homeserver
any
### Will you send logs?
No
### Are you willing to provide a PR?
No
Contributor guide
Assessment
This issue has not been assessed yet.