Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-11 11:07:11 +08:00
parent 00da3c4a0e
commit 09bd1edeb3
6 changed files with 28 additions and 15 deletions

View File

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