Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AnJiaoDe committed Jan 25, 2024
1 parent 0fe239d commit d6cfc0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public void onToAuthorizeClicked() {
}
callbackPermission.onPermissionHave();
}

public static void checknStorageAsk(final Context context, final CallbackPermission callbackPermission) {
checkPermissionExternalStorage(context,context.getString(R.string.storage_permission_ask),callbackPermission);
}
/**
* 特殊权限
* return Permission.MANAGE_EXTERNAL_STORAGE.equals(permission) ||
Expand Down
1 change: 1 addition & 0 deletions permissionniubility/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<string name="to_authorize">去授权</string>
<string name="forbid_ask">禁用这些权限,您可能无法使用某些功能</string>
<string name="cancel">取消</string>
<string name="storage_permission_ask">如果您需要访问相册、存储图片、视频等,您需要授予存储权限</string>
</resources>
1 change: 1 addition & 0 deletions permissionniubility/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<string name="to_authorize">To authorize</string>
<string name="forbid_ask">Disable these permissions, you may not be able to use some features</string>
<string name="cancel">Cancel</string>
<string name="storage_permission_ask">如果您需要访问相册、存储图片、视频等,您需要授予存储权限</string>
</resources>

0 comments on commit d6cfc0c

Please sign in to comment.