LuckSiege / LuckSiege/PictureSelector
开启压缩后一直loading
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Current use version?
#### 当前使用的版本是多少?
```
3.11.1
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
必现
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
部分手机压缩不会掉,打断点发现callback没有击中任何一个onResultEvent。
if (TextUtils.isEmpty(srcPath)) {
onResultEvent(result);
} else {
LocalMedia media = queue.get(srcPath);
if (media != null) {
if (SdkVersionUtils.isQ()){
if (!TextUtils.isEmpty(compressPath) && (compressPath.contains("Android/data/")
|| compressPath.contains("data/user/"))) {
media.setCompressPath(compressPath);
media.setCompressed(!TextUtils.isEmpty(compressPath));
media.setSandboxPath(media.getCompressPath());
}
} else {
media.setCompressPath(compressPath);
media.setCompressed(!TextUtils.isEmpty(compressPath));
}
queue.remove(srcPath);
}else{
// TODO 添加这个判断是否可行
onResultEvent(result);
}
if (queue.size() == 0) {
onResultEvent(result);
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the compression flow described for version 3.11.1 and inspect the callback code containing onResultEvent, the queue, and compressPath. Trace cases where no onResultEvent is reached, then verify that compression completes and the loading state ends on affected phones.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100