mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Remove unnecessary comments
This commit is contained in:
parent
d4c63b7b5f
commit
636e7ddcfb
1 changed files with 2 additions and 6 deletions
|
|
@ -122,7 +122,6 @@ public class ShareActivity
|
||||||
Log.d(TAG, "Cache the categories found");
|
Log.d(TAG, "Cache the categories found");
|
||||||
}
|
}
|
||||||
|
|
||||||
//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;
|
||||||
|
|
@ -242,22 +241,19 @@ public class ShareActivity
|
||||||
mediaUriString = mediaUri.toString();
|
mediaUriString = mediaUri.toString();
|
||||||
ImageLoader.getInstance().displayImage(mediaUriString, backgroundImageView);
|
ImageLoader.getInstance().displayImage(mediaUriString, backgroundImageView);
|
||||||
|
|
||||||
//Test SHA1 of image to see if it matches existing SHA1
|
//Test SHA1 of image to see if it matches SHA1 of a file on Commons
|
||||||
try {
|
try {
|
||||||
InputStream inputStream = getContentResolver().openInputStream(mediaUri);
|
InputStream inputStream = getContentResolver().openInputStream(mediaUri);
|
||||||
Log.d(TAG, "Input stream created from " + mediaUriString);
|
Log.d(TAG, "Input stream created from " + mediaUriString);
|
||||||
String fileSHA1 = Utils.getSHA1(inputStream);
|
String fileSHA1 = Utils.getSHA1(inputStream);
|
||||||
Log.d(TAG, "File SHA1 is: " + fileSHA1);
|
Log.d(TAG, "File SHA1 is: " + fileSHA1);
|
||||||
|
|
||||||
//FIXME: Replace hardcoded string with call to Commons API instead (use TitleCategories.java as template)
|
|
||||||
|
|
||||||
ExistingFileAsync fileAsyncTask = new ExistingFileAsync(fileSHA1, this);
|
ExistingFileAsync fileAsyncTask = new ExistingFileAsync(fileSHA1, this);
|
||||||
fileAsyncTask.execute();
|
fileAsyncTask.execute();
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.d(TAG, "IO Exception: ", e);
|
Log.d(TAG, "IO Exception: ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(savedInstanceState != null) {
|
if(savedInstanceState != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue