diff options
author | 2022-03-28 18:02:04 +0900 | |
---|---|---|
committer | 2022-04-19 10:17:19 +0900 | |
commit | 49c433e211c1b3ab2164cdd6491734c4be3e7013 (patch) | |
tree | 7dca13254e62e62af2eeb7f57ac3e0fc76761bf9 /api/api.go | |
parent | 6f7ec05bd037dc1f5a4f890d5d200d194d058f14 (diff) |
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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions