Add comments

This commit is contained in:
misaochan 2016-12-08 19:38:17 +13:00
parent dfbc0ffea8
commit 43fc4d7427
2 changed files with 3 additions and 2 deletions

View file

@ -72,8 +72,9 @@ public class ContributionController {
shareIntent.setAction(Intent.ACTION_SEND);
switch(requestCode) {
case SELECT_FROM_GALLERY:
//FIXME: Handles image picked from gallery (from Google Photos)
//Handles image picked from gallery
Uri imageData = data.getData();
//TODO: Check SHA1 hash of image data here?
shareIntent.setType(activity.getContentResolver().getType(imageData));
shareIntent.putExtra(Intent.EXTRA_STREAM, imageData);
shareIntent.putExtra(UploadService.EXTRA_SOURCE, fr.free.nrw.commons.contributions.Contribution.SOURCE_GALLERY);