ref |> 修改系统相册、相机、定位、麦克风权限设置字串
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
3 changed files
with
24 additions
and
7 deletions
| @@ -67,7 +67,9 @@ export struct PrivacySettingPage { | @@ -67,7 +67,9 @@ export struct PrivacySettingPage { | ||
| 67 | getArrowCell({ item:item, index:index }); | 67 | getArrowCell({ item:item, index:index }); |
| 68 | } | 68 | } |
| 69 | }.onClick(() => { | 69 | }.onClick(() => { |
| 70 | - if (index != 0) { | 70 | + if (item.privacyName == DiyString) { |
| 71 | + return | ||
| 72 | + } | ||
| 71 | if (!item.permission) { | 73 | if (!item.permission) { |
| 72 | //跳转权限设置 | 74 | //跳转权限设置 |
| 73 | const permissionUtil = new PermissionUtil(); | 75 | const permissionUtil = new PermissionUtil(); |
| @@ -77,7 +79,6 @@ export struct PrivacySettingPage { | @@ -77,7 +79,6 @@ export struct PrivacySettingPage { | ||
| 77 | }else{ | 79 | }else{ |
| 78 | PermissionUtil.openPermissionsInSystemSettings(this); | 80 | PermissionUtil.openPermissionsInSystemSettings(this); |
| 79 | } | 81 | } |
| 80 | - } | ||
| 81 | }) | 82 | }) |
| 82 | }) | 83 | }) |
| 83 | } | 84 | } |
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | "requestPermissions": [ | 41 | "requestPermissions": [ |
| 42 | { | 42 | { |
| 43 | "name": "ohos.permission.CAMERA", | 43 | "name": "ohos.permission.CAMERA", |
| 44 | - "reason": "$string:EntryAbility_desc", | 44 | + "reason": "$string:permission_camera_tip", |
| 45 | "usedScene": { | 45 | "usedScene": { |
| 46 | "abilities": [ | 46 | "abilities": [ |
| 47 | "FormAbility" | 47 | "FormAbility" |
| @@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
| 51 | }, | 51 | }, |
| 52 | { | 52 | { |
| 53 | "name": "ohos.permission.READ_MEDIA", | 53 | "name": "ohos.permission.READ_MEDIA", |
| 54 | - "reason": "$string:EntryAbility_desc", | 54 | + "reason": "$string:permission_photo_tip", |
| 55 | "usedScene": { | 55 | "usedScene": { |
| 56 | "abilities": [ | 56 | "abilities": [ |
| 57 | "FormAbility" | 57 | "FormAbility" |
| @@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
| 61 | }, | 61 | }, |
| 62 | { | 62 | { |
| 63 | "name": "ohos.permission.WRITE_MEDIA", | 63 | "name": "ohos.permission.WRITE_MEDIA", |
| 64 | - "reason": "$string:EntryAbility_desc", | 64 | + "reason": "$string:permission_photo_tip", |
| 65 | "usedScene": { | 65 | "usedScene": { |
| 66 | "abilities": [ | 66 | "abilities": [ |
| 67 | "FormAbility" | 67 | "FormAbility" |
| @@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
| 71 | }, | 71 | }, |
| 72 | { | 72 | { |
| 73 | "name": "ohos.permission.APPROXIMATELY_LOCATION", | 73 | "name": "ohos.permission.APPROXIMATELY_LOCATION", |
| 74 | - "reason": "$string:EntryAbility_desc", | 74 | + "reason": "$string:permission_location_tip", |
| 75 | "usedScene": { | 75 | "usedScene": { |
| 76 | "abilities": [ | 76 | "abilities": [ |
| 77 | "FormAbility" | 77 | "FormAbility" |
| @@ -81,7 +81,7 @@ | @@ -81,7 +81,7 @@ | ||
| 81 | }, | 81 | }, |
| 82 | { | 82 | { |
| 83 | "name": "ohos.permission.MICROPHONE", | 83 | "name": "ohos.permission.MICROPHONE", |
| 84 | - "reason": "$string:EntryAbility_desc", | 84 | + "reason": "$string:permission_microphone_tip", |
| 85 | "usedScene": { | 85 | "usedScene": { |
| 86 | "abilities": [ | 86 | "abilities": [ |
| 87 | "FormAbility" | 87 | "FormAbility" |
| @@ -13,6 +13,22 @@ | @@ -13,6 +13,22 @@ | ||
| 13 | "value": "$string:app_name" | 13 | "value": "$string:app_name" |
| 14 | }, | 14 | }, |
| 15 | { | 15 | { |
| 16 | + "name": "permission_photo_tip", | ||
| 17 | + "value": "开启之后即可用于保存新闻图片到相册、发视频、设置封面、设置头像、缓存图片和视频来展示内容等功能" | ||
| 18 | + }, | ||
| 19 | + { | ||
| 20 | + "name": "permission_camera_tip", | ||
| 21 | + "value": "开启之后即可用于拍摄视频、拍摄头像、扫一扫功能" | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + "name": "permission_location_tip", | ||
| 25 | + "value": "开启之后可为你推荐你可能感兴趣的内容及附近的相关信息,以提升浏览体验。不授权该权限不影响APP正常使用。" | ||
| 26 | + }, | ||
| 27 | + { | ||
| 28 | + "name": "permission_microphone_tip", | ||
| 29 | + "value": "开启之后即可用于收录声音进行拍摄视频、语音搜索、语音评论功能," | ||
| 30 | + }, | ||
| 31 | + { | ||
| 16 | "name": "dialog_text_title", | 32 | "name": "dialog_text_title", |
| 17 | "value": "个人隐私保护指引" | 33 | "value": "个人隐私保护指引" |
| 18 | }, | 34 | }, |
-
Please register or login to post a comment