LuckSiege / LuckSiege/PictureSelector

权限说明 bug

Open
#2,969 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## Current use version?
#### What version is currently in use?

```
v3.11.2
```

## Will this problem occur in demo?
#### Can the Demo reproduce this problem?

```
able
```

## Describe the problem or provide an error log?
#### Describe the problem or provide an error log?

```
public static void camera(Activity activity, boolean isCrop, UCrop.Options options, OnResultCallbackListener callbackListener) {
ImageCropEngine imageCropEngine = new ImageCropEngine() {
@Override
public UCrop.Options getOptions() {
if (options == null) {
return super.getOptions();
} else {
return options;
}
}
};

// Take photos alone
PictureSelectionCameraModel cameraModel = PictureSelector.create(activity)
.openCamera(SelectMimeType.ofImage())//Select type
.setCameraInterceptListener(null)//Custom camera event
.setCropEngine(isCrop ? imageCropEngine : null)// Cropping engine
//.setRecordAudioInterceptListener(new MeOnRecordAudioInterceptListener())//Recording callback event
//.setCropEngine(getCropFileEngine())
.setCompressEngine(new ImageFileCompressEngine())//Compression engine
//.setAddBitmapWatermarkListener(getAddBitmapWatermarkListener())//Add watermark to the picture
//.setVideoThumbnailListener(getVideoThumbnailEventListener())//Processing video thumbnails
//.setLanguage(language)
//.setSandboxFileEngine(new MeSandboxFileEngine())//Customized sandbox file processing
.isOriginalControl(true)// Whether to enable the original image function
.setPermissionDescriptionListener(getPermissionDescriptionListener())//Permission description
//.setOutputAudioDir(getSandboxAudioOutputPath())//Create a custom audio output directory
//.setSelectedData(mAdapter.getData())//Set selected data
;
cameraModel.forResultActivity(callbackListener);
}
单独拍照设置.setPermissionDescriptionListener(getPermissionDescriptionListener())// 权限说明
没有显示权限说明
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the camera setup that calls setPermissionDescriptionListener(getPermissionDescriptionListener()) in the issue, then trace how the permission description listener is handled for camera-only capture. Reproduce with PictureSelector v3.11.2 and verify that the configured permission description is displayed when the camera permission is needed.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.