Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[camera] Handle empty grantResults on permission request #6758

Merged
merged 5 commits into from
Dec 5, 2022

Conversation

davidmartos96
Copy link
Contributor

This PR handles a special situation where the grantResults array could be empty when asking for permissions.
Fixes flutter/flutter#116047

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

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

LGTM with a formatting nit! Thanks for fixing this! I will ping someone for a second review :) You may also need to rebase onto main to fix the test failure because it seems unrelated.

packages/camera/camera_android/CHANGELOG.md Show resolved Hide resolved
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
@davidmartos96
Copy link
Contributor Author

@camsim99 Unfortunately the Mac_x64 check keeps failing. There is nothing new to rebase on

@camsim99
Copy link
Contributor

@davidmartos96 I re-ran it because I think it's a flaky test, unfortunately. It looks like it passed!

@davidmartos96
Copy link
Contributor Author

@davidmartos96 I re-ran it because I think it's a flaky test, unfortunately. It looks like it passed!

Great!

Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

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

LGTM

@camsim99 camsim99 added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 5, 2022
@auto-submit auto-submit bot merged commit 63f1b8f into flutter:main Dec 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 6, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Dec 6, 2022
* 63f1b8fb6 [camera] Handle empty grantResults on permission request (flutter/plugins#6758)

* 1579f2f33 Roll Flutter from 33f3e13 to 30fc993 (6 revisions) (flutter/plugins#6791)

* 345bddbd8 [gh_actions]: Bump github/codeql-action from 2.1.27 to 2.1.35 (flutter/plugins#6788)

* 374e59804 [camera] Add ability to concurrently record and stream video (flutter/plugins#6290)
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…#116591)

* 63f1b8fb6 [camera] Handle empty grantResults on permission request (flutter/plugins#6758)

* 1579f2f33 Roll Flutter from 33f3e13 to 30fc993 (6 revisions) (flutter/plugins#6791)

* 345bddbd8 [gh_actions]: Bump github/codeql-action from 2.1.27 to 2.1.35 (flutter/plugins#6788)

* 374e59804 [camera] Add ability to concurrently record and stream video (flutter/plugins#6290)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…#116591)

* 63f1b8fb6 [camera] Handle empty grantResults on permission request (flutter/plugins#6758)

* 1579f2f33 Roll Flutter from 33f3e13 to 30fc993 (6 revisions) (flutter/plugins#6791)

* 345bddbd8 [gh_actions]: Bump github/codeql-action from 2.1.27 to 2.1.35 (flutter/plugins#6788)

* 374e59804 [camera] Add ability to concurrently record and stream video (flutter/plugins#6290)
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
* [camera] Handle empty grantResults on permission request

* update changelog and add test

* fix typo

* format

* Update packages/camera/camera_android/CHANGELOG.md

Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>

Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: camera platform-android
Projects
None yet
3 participants