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); shareIntent.setAction(Intent.ACTION_SEND);
switch(requestCode) { switch(requestCode) {
case SELECT_FROM_GALLERY: case SELECT_FROM_GALLERY:
//FIXME: Handles image picked from gallery (from Google Photos) //Handles image picked from gallery
Uri imageData = data.getData(); Uri imageData = data.getData();
//TODO: Check SHA1 hash of image data here?
shareIntent.setType(activity.getContentResolver().getType(imageData)); shareIntent.setType(activity.getContentResolver().getType(imageData));
shareIntent.putExtra(Intent.EXTRA_STREAM, imageData); 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);

View file

@ -117,7 +117,7 @@ public class ShareActivity
Log.d(TAG, "Cache the categories found"); Log.d(TAG, "Cache the categories found");
} }
//TODO: Pass in coords here? Need to be in format 37.51136|-77.602615 , which decimalCoords appears to be //TODO: Check for SHA1 hash of selected file
uploadController.startUpload(title, mediaUri, description, mimeType, source, decimalCoords, new UploadController.ContributionUploadProgress() { uploadController.startUpload(title, mediaUri, description, mimeType, source, decimalCoords, new UploadController.ContributionUploadProgress() {
public void onUploadStarted(Contribution contribution) { public void onUploadStarted(Contribution contribution) {
ShareActivity.this.contribution = contribution; ShareActivity.this.contribution = contribution;