feat: 发布1.0.0.106
This commit is contained in:
@@ -9,6 +9,7 @@ import 'package:get/get.dart';
|
||||
import 'package:gal/gal.dart';
|
||||
import 'package:kaer_with_panels/app/utils/kr_common_util.dart';
|
||||
import 'package:kaer_with_panels/app/widgets/dialogs/hi_dialog.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class HIAntiLostController extends GetxController {
|
||||
@@ -51,7 +52,13 @@ class HIAntiLostController extends GetxController {
|
||||
debugPrint("Save image error: $e");
|
||||
if (e is GalException) {
|
||||
if (e.type == GalExceptionType.accessDenied) {
|
||||
await Gal.requestAccess();
|
||||
HIDialog.show(
|
||||
title: "提示",
|
||||
message: "请到-设置-应用-Hi快vpn-相册权限-允许保存相片打开保存图片权限",
|
||||
confirmText: "去设置",
|
||||
cancelText: "取消",
|
||||
onConfirm: () => openAppSettings(),
|
||||
);
|
||||
} else {
|
||||
KRCommonUtil.kr_showToast("保存失败: ${e.type.name}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user