commit | 84b1654c1dd798e018b988cf1d6be28e0b21f4bd | [log] [tgz] |
---|---|---|
author | Gary Mai <garymai@google.com> | Thu Dec 15 17:25:56 2016 -0800 |
committer | Gary Mai <garymai@google.com> | Thu Dec 15 17:33:45 2016 -0800 |
tree | d849002a6f146f620b0ea0976fe4e0aee023cdc9 | |
parent | ccf0cf57690c026d84dfec0ee231e4bcdacc6e27 [diff] |
Fix crash from using third party gallery apps Some third party apps return unexpected URI's when photos are cropped. An example is the Piktures app. Instead of trusting their URI returned in the intent, copy the photo from theirs into one which was generated by us and use that. Test: Verified saving a contact with a picture that was cropped from the Piktures app doesn't crash. Bug: 33617676 Change-Id: I33e8922e5d89fabfcb90009d32b82a8a3f26c262