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?
#### 当前使用的版本是多少?3.11.2
```
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
```
3.11.2的版本
fun getPath2(context: Context, localMedia: LocalMedia): String? {
val path = localMedia.path ?: localMedia.realPath
return if (!path.isNullOrEmpty() && path.startsWith("content://")) {
val uri = Uri.parse(path)
PictureFileUtils.getPath(context, uri)
} else {
path
}
}
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
The issue provides only a Kotlin getPath2 function and calls PictureFileUtils.getPath; no repository file or test is named. Start by clarifying the intended change and checking the Android path-handling entry point, then define a reproducible case and tests before determining what done means.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100