mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add logging
This commit is contained in:
parent
4bcc9d7ddd
commit
91c6b3518c
2 changed files with 2 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ public class ExistingFileAsync extends AsyncTask<Void, Void, Boolean> {
|
|||
}
|
||||
|
||||
ArrayList<ApiResult> resultNodes = result.getNodes("/api/query/allimages/");
|
||||
boolean fileExists = !resultNodes.isEmpty();
|
||||
boolean fileExists = resultNodes!=null;
|
||||
Log.d(TAG, "File already exists in Commons:" + fileExists);
|
||||
|
||||
return fileExists;
|
||||
|
|
|
|||
|
|
@ -247,6 +247,7 @@ public class ShareActivity
|
|||
InputStream inputStream = getContentResolver().openInputStream(mediaUri);
|
||||
Log.d(TAG, "Input stream created from " + mediaUriString);
|
||||
String fileSHA1 = Utils.getSHA1(inputStream);
|
||||
Log.d(TAG, "File SHA1 is: " + fileSHA1);
|
||||
|
||||
//FIXME: Replace hardcoded string with call to Commons API instead (use TitleCategories.java as template)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue