mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Add API query URL
This commit is contained in:
parent
16877eca27
commit
bd00a514a3
1 changed files with 3 additions and 1 deletions
|
|
@ -242,11 +242,13 @@ public class ShareActivity
|
|||
mediaUriString = mediaUri.toString();
|
||||
ImageLoader.getInstance().displayImage(mediaUriString, backgroundImageView);
|
||||
|
||||
//Test SHA1 of image
|
||||
//Test SHA1 of image to see if it matches existing SHA1
|
||||
try {
|
||||
InputStream inputStream = getContentResolver().openInputStream(mediaUri);
|
||||
Log.d(TAG, "Input stream created from " + mediaUriString);
|
||||
|
||||
//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
|
||||
boolean sha1Bool = Utils.testSHA1("801957214aba50cb63bb6eb1b0effa50188900ba", inputStream);
|
||||
Log.d(TAG, "SHA1Bool returns " + sha1Bool);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue