Open murraycu opened 8 years ago
Fixed by pull request #36 : https://github.com/murraycu/android-galaxyzoo/pull/36
Unfortunately, SubjectFragment.updateShareActionIntent() is always called from onCreateOptionsMenu(), and updateShareActionIntent() always executes the GetImageBitmapAsyncTask, getting the image just in case the user wants to share it.
That's unnecessary work in most cases and it causes us to ask the user for photos/files permission. We really should delay that permission request (and the actual downloading) until the user actually tries to share something. If I can't fix that, I'll have to revert this for now. Sorry.
The app now has a Share menu item, but it just shares the URI of the discussion page.
This branch tries to share the image itself, but it isn't working. https://github.com/murraycu/android-galaxyzoo/commits/share-image
With that code, the Share menu item does nothing. If we comment out the intent.setData() line then we can share to other apps, but they then fail with errors or crashes, presumably due to lack of permission, though we are granting them permission.