LuckSiege / LuckSiege/PictureSelector
是否可以增加相关配置控制是否需要弹出Toast
Open
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?
当前使用的版本是多少?
2.2.3
Will this problem occur in demo?
Demo能否复现这问题?
是
Describe the problem or provide an error log?
描述问题或提供错误log?
1、第一次打开图库后,多次拒绝权限,并选择“拒绝,不要在询问”
2、点击“去设置”,进入到系统设置页面,然后直接点击返回键,返回到app
3、此时会有一个Toast,是否可以增加相关配置来决定是否需要这个Toast
弹出Toast的代码是在 PictureSelectorFragment 的 handlePermissionSettingResult 方法中
@Override
public void handlePermissionSettingResult(String[] permissions) {
...
if (isHasPermissions) {
...
} else {
if (isHasCamera) {
// 这里是否可以增加一个配置,控制 Toast 的显示与否
ToastUtils.showToast(getContext(), getString(R.string.ps_camera));
} else {
// 这里是否可以增加一个配置,控制 Toast 的显示与否
ToastUtils.showToast(getContext(), getString(R.string.ps_jurisdiction));
onKeyBackFragmentFinish();
}
}
PermissionConfig.CURRENT_REQUEST_PERMISSION = new String[]{};
}
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 in PictureSelectorFragment.handlePermissionSettingResult and inspect the existing PermissionConfig and ToastUtils usage. The requested change is a configuration option controlling whether the permission-related Toast is shown after returning from system settings, covering both camera and general permission messages. Done means the option controls these Toasts without changing the surrounding permission flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100