{"push_id":1749191960,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"9588a228d8290037cd80afa727e9b1b952909db8","before":"711c3fea50f04002f1e1e1136bf15c26e36078bb","commits":[{"sha":"944213ec75fb272bd9674bb4aa6630958c6276cb","author":{"name":"Murray Cumming","email":"1d61910f335c74c9353b0289522bd00c63de80db@murrayc.com"},"message":"ClassifyFragment: Add an import to fix the build.","distinct":true,"url":"https://api.github.com/repos/murraycu/android-galaxyzoo/commits/944213ec75fb272bd9674bb4aa6630958c6276cb"},{"sha":"9588a228d8290037cd80afa727e9b1b952909db8","author":{"name":"Avinash David","email":"9ee2c293b659c0074d93d1c8b8ffc9583382e80e@gmail.com"},"message":"Correct sharing of image via share menu item.\n\nSolves issue #30:\nhttps://github.com/murraycu/android-galaxyzoo/issues/30\n\nPreviously, there were permission problems from trying to share the\nimage to image sharing apps.\n\n* AndroidManifest: Define FileProvider class, along with the required\n  meta-data and associated files (a string was added to strings.xml for\n  the provider authority). This is apparently required for sharing streams\n  in Android M and above.\n\n* SubjectFragment: Add a GetImageBitmapAsyncTask inner class to download\n  the image in the background asynchronously. A temporary file of the\n  image is written to keep track of exact file location, as well as to have\n  a temporary cache of previously shared images.\n\n  The FileProvider class is used to create the URI that will eventually be\n  sent in the intent.  A FLAG_GRANT_READ_URI_PERMISSION intent flag is\n  added for purposes of magic (I'm not really sure what it does, but it works).\n\n* SubjectFragment.updateShareActionIntent(): Create the GetImageBitmapAsyncTask.\n  In devices with Android M or above, explicit permission to write and read\n  images is obtained if not already provided.\n\nIn the limited use case of trying to share images, this code works.\nAdditional changes might be required to distinguish text from image\nintents to share, because the code right now will set the share intent\nto an image type if mUriImageRemote is not null.","distinct":true,"url":"https://api.github.com/repos/murraycu/android-galaxyzoo/commits/9588a228d8290037cd80afa727e9b1b952909db8"}]}
{"actor":{"display_login":"murraycu"}}