LuckSiege / LuckSiege/PictureSelector
使用PictureSelectorFragment时,点击图片预览图片时报错
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
#### 使用PictureSelectorFragment时,点击图片预览图片时报错
```
原因:FragmentInjectManager.injectFragment使用了R.id.fragment_container,Activity中没有fragment_container的View
```
```
解决方案:FragmentInjectManager.injectFragment更换为FragmentInjectManager.injectSystemRoomFragment
```
```
临时解决方案:重写config.setPreviewInterceptListener,使用FragmentInjectManager.injectSystemRoomFragment打开
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate PictureSelectorFragment's preview flow and the FragmentInjectManager.injectFragment call described in the issue. Compare it with injectSystemRoomFragment, then verify that preview works in an Activity without a fragment_container view; the issue also identifies config.setPreviewInterceptListener as a temporary workaround to compare against.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100