mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Replace data with imageData
This commit is contained in:
parent
fd53b36624
commit
e93ac7746d
1 changed files with 2 additions and 2 deletions
|
|
@ -73,8 +73,8 @@ public class ContributionController {
|
||||||
switch(requestCode) {
|
switch(requestCode) {
|
||||||
case SELECT_FROM_GALLERY:
|
case SELECT_FROM_GALLERY:
|
||||||
//FIXME: Handles image picked from gallery (from Google Photos)
|
//FIXME: Handles image picked from gallery (from Google Photos)
|
||||||
shareIntent.setType(activity.getContentResolver().getType(data));
|
shareIntent.setType(activity.getContentResolver().getType(imageData));
|
||||||
shareIntent.putExtra(Intent.EXTRA_STREAM, data.getData());
|
shareIntent.putExtra(Intent.EXTRA_STREAM, imageData);
|
||||||
shareIntent.putExtra(UploadService.EXTRA_SOURCE, fr.free.nrw.commons.contributions.Contribution.SOURCE_GALLERY);
|
shareIntent.putExtra(UploadService.EXTRA_SOURCE, fr.free.nrw.commons.contributions.Contribution.SOURCE_GALLERY);
|
||||||
break;
|
break;
|
||||||
case SELECT_FROM_CAMERA:
|
case SELECT_FROM_CAMERA:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue