Skip to content

Commit

Permalink
[image_picker] update Uri Authority for GooglePhotos (flutter#1266)
Browse files Browse the repository at this point in the history
Google photo Uri Authority is always "com.google.android.apps.photos.contentprovider".
  • Loading branch information
ivk1800 authored and Chris Yang committed Mar 19, 2019
1 parent 61c90bf commit 968e1ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/image_picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.0+8

* Fixed wrong GooglePhotos authority of image Uri

## 0.5.0+7
* Fix a crash when selecting images from yandex.disk and dropbox.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ private static boolean isMediaDocument(Uri uri) {
}

private static boolean isGooglePhotosUri(Uri uri) {
return "com.google.android.apps.photos.content".equals(uri.getAuthority());
return "com.google.android.apps.photos.contentprovider".equals(uri.getAuthority());
}
}
2 changes: 1 addition & 1 deletion packages/image_picker/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
- Flutter Team <[email protected]>
- Rhodes Davis Jr. <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker
version: 0.5.0+7
version: 0.5.0+8

flutter:
plugin:
Expand Down

0 comments on commit 968e1ce

Please sign in to comment.