fix: permission dialog (#1799)

* don't request photo permission on A13+

saving to system album requires no additional permission

* fix permission dialog

* update

Signed-off-by: dom <githubaccount56556@proton.me>

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
KoishiMoe
2026-01-09 11:07:39 +08:00
committed by GitHub
parent fffce10b31
commit dbc11c36df
6 changed files with 29 additions and 58 deletions

View File

@@ -291,7 +291,7 @@ class _SavePanelState extends State<SavePanel> {
Future<void> _onSaveOrSharePic([bool isShare = false]) async {
if (!isShare && PlatformUtils.isMobile) {
if (mounted && !await ImageUtils.checkPermissionDependOnSdkInt(context)) {
if (mounted && !await ImageUtils.checkPermissionDependOnSdkInt()) {
return;
}
}