mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add comments
This commit is contained in:
parent
c8b6e83ab4
commit
674663601a
1 changed files with 1 additions and 2 deletions
|
|
@ -246,11 +246,10 @@ public class ShareActivity
|
|||
try {
|
||||
InputStream inputStream = getContentResolver().openInputStream(mediaUri);
|
||||
Log.d(TAG, "Input stream created from " + mediaUriString);
|
||||
String fileSHA1 = Utils.getSHA1(inputStream);
|
||||
|
||||
//FIXME: Replace hardcoded string with call to Commons API instead (use TitleCategories.java as template)
|
||||
// https://commons.wikimedia.org/w/api.php?action=query&list=allimages&aisha1=801957214aba50cb63bb6eb1b0effa50188900ba
|
||||
|
||||
String fileSHA1 = Utils.getSHA1(inputStream);
|
||||
String debugSHA1 = "801957214aba50cb63bb6eb1b0effa50188900ba";
|
||||
|
||||
boolean fileSHA1Found = fileSHA1.equals(debugSHA1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue