Set an edit uri to data of ACTION_EDIT
Symptom: Can't transit to edit screen when "Edit" button on ShareSheet is pressed. Root cause: ACTION_SEND intent for shared image is usually sent with image uri in EXTRA_STREAM extra. But it not always has the uri in data. ChooserActivity creates ACTION_EDIT intent for "Edit" button from the ACTION_SEND intent. So it not always has the uri in data. Most of image edit app suppose to get image uri from data. They usually don't suppose to get it from EXTRA_STREAM extra. So image is not edited. Solution: Copy image uri from EXTRA_STREAM extra to data when ChooserActivity creates ACTION_EDIT intent. Bug: 220161786 Test: Take screenshot. Tap share. Tap Edit, which opens screenshot in Photos. Change-Id: Id6ce93efacd54a86d870595ae32b4e6efcec0c04
Loading
Please register or sign in to comment