mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add comments
This commit is contained in:
parent
dfbc0ffea8
commit
43fc4d7427
2 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ public class ShareActivity
|
|||
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() {
|
||||
public void onUploadStarted(Contribution contribution) {
|
||||
ShareActivity.this.contribution = contribution;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue