Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display rationale before requesting a permission #1271

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

felipeerias
Copy link
Collaborator

This is required by HVR in mainland China.

This is implemented by showing a dialog before the Android API is called.

@felipeerias felipeerias requested a review from svillar February 27, 2024 06:31
@felipeerias
Copy link
Collaborator Author

Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

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

Looking good, just have some minor comments

@@ -275,7 +300,7 @@ public void reject() {
}

@Override
public void onMediaPermissionRequest(WSession aSession, String aUri, MediaSource[] aVideo, MediaSource[] aAudio, final MediaCallback aMediaCallback) {
public void onMediaPermissionRequest(@NonNull WSession aSession, @NonNull String aUri, MediaSource[] aVideo, MediaSource[] aAudio, @NonNull final MediaCallback aMediaCallback) {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we could gather all the missing annotations in a separate commit?

@felipeerias felipeerias force-pushed the felipeerias/permissionRationaleDialog branch from 1c968c0 to 1211c29 Compare March 12, 2024 03:23
@felipeerias felipeerias force-pushed the felipeerias/permissionRationaleDialog branch from 1211c29 to 39a5c40 Compare March 20, 2024 11:24
@felipeerias felipeerias requested a review from svillar March 20, 2024 11:24
@svillar svillar merged commit 1e82965 into main Mar 20, 2024
20 checks passed
@svillar svillar deleted the felipeerias/permissionRationaleDialog branch March 20, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants