LuckSiege / LuckSiege/PictureSelector
某些手机不显示预览
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Current use version?
#### 当前使用的版本是多少?
```
v3.11.1
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
可以
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
某些手机上拍照或录像不能显示预览
原因是,在构建camera的时候,预览view的设置在bindToLifecycle之后,改到bindToLifecycle之前就好了
preview.setSurfaceProvider(mCameraPreviewView.getSurfaceProvider());
Camera camera = mCameraProvider.bindToLifecycle((LifecycleOwner) getContext(), cameraSelector, useCaseGroup);
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android camera construction path that sets mCameraPreviewView.getSurfaceProvider() and calls bindToLifecycle. Reproduce the preview failure in the demo on an affected phone, then verify the preview appears reliably after the binding order is corrected and run the relevant camera or demo checks.
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
- Mostly clear
- Newbie friendliness
- 38/100