Skip to content

[Tizen.Security.PrivacyPrivilegeManager][Non-ACR] Fix multiple priv. callback#7718

Open
TomaszSwierczek wants to merge 1 commit into
Samsung:mainfrom
TomaszSwierczek:master
Open

[Tizen.Security.PrivacyPrivilegeManager][Non-ACR] Fix multiple priv. callback#7718
TomaszSwierczek wants to merge 1 commit into
Samsung:mainfrom
TomaszSwierczek:master

Conversation

@TomaszSwierczek

Copy link
Copy Markdown
Collaborator

In case the callback is called for reason different than actual answer, underlying native implementation is not populating the results array and code cannot iterate over it.

Similar check was already present in single-privilege callback C# code where result wasn't reached for in case of non-answer call.

This commit fixes this behaviour for multiple-privileges callback.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the MultipleRequestHandler method in PrivacyPrivilegeManager.cs to conditionally populate the Result field of PermissionRequestResponse only when the cause is CallCause.Answer. The review feedback suggests refactoring this implementation to eliminate duplicated array allocation and loop structures by using a ternary operator within a single loop.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

…ege callback management

In case the callback is called for reason different than actual answer,
underlying native implementation is not populating the results array
and code cannot iterate over it.

Similar check was already present in single-privilege callback C# code
where result wasn't reached for in case of non-answer call.

This commit fixes this behaviour for multiple-privileges callback.

Co-Authored-By: Cline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant