You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found, that if you place in your wizard pager amount of ImagePage, so when you will startActivityForResult returned result will overwrite every your image. I found the way to avoid this:
Changing request codes to:
private final int GALLERY_REQUEST_CODE = Math.abs((short) (hashCode() ^ (hashCode() >>> 16)) - 0);
private final int CAMERA_REQUEST_CODE = Math.abs((short) (hashCode() ^ (hashCode() >>> 16)) - 1);
This will make every ImageFragment unique.
Later change onActivityResult for:
Hi, thanks for the info, if you could make a pull request for this that
would be great
On Oct 30, 2015 6:16 AM, "Anton Shkurenko" notifications@github.com wrote:
I found, that if you place in your wizard pager amount of ImagePage, so
when you will startActivityForResult returned result will overwrite every
your image. I found the way to avoid this:
Changing request codes to:
private final int GALLERY_REQUEST_CODE = Math.abs((short) (hashCode() ^ (hashCode() >>> 16)) - 0);
private final int CAMERA_REQUEST_CODE = Math.abs((short) (hashCode() ^ (hashCode() >>> 16)) - 1);
This will make every ImageFragment unique.
Later change onActivityResult for:
I found, that if you place in your wizard pager amount of
ImagePage
, so when you willstartActivityForResult
returned result will overwrite every your image. I found the way to avoid this:Changing request codes to:
This will make every
ImageFragment
unique.Later change
onActivityResult
for:The text was updated successfully, but these errors were encountered: