From c0d812e8580bb39c5aa25ace9fbd791fb5709da9 Mon Sep 17 00:00:00 2001 From: misaochan Date: Fri, 8 Jan 2016 23:58:07 +1300 Subject: [PATCH] Minor reformat --- .../java/fr/free/nrw/commons/upload/ShareActivity.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/commons/src/main/java/fr/free/nrw/commons/upload/ShareActivity.java b/commons/src/main/java/fr/free/nrw/commons/upload/ShareActivity.java index 2d5919072..622d304a1 100644 --- a/commons/src/main/java/fr/free/nrw/commons/upload/ShareActivity.java +++ b/commons/src/main/java/fr/free/nrw/commons/upload/ShareActivity.java @@ -170,7 +170,7 @@ public class ShareActivity private String getRealPathFromURI(Uri contentURI) { String result; Cursor cursor = getContentResolver().query(contentURI, null, null, null, null); - if (cursor == null) { // Source is Dropbox or other similar local file path + if (cursor == null) { // Source is local file path result = contentURI.getPath(); } else { cursor.moveToFirst(); @@ -204,13 +204,10 @@ public class ShareActivity mediaUriString = mediaUri.toString(); Log.d(TAG, "Uri: " + mediaUriString); + Log.d(TAG, "Ext storage dir: " + Environment.getExternalStorageDirectory()); //convert image Uri to file path - Log.d(TAG, "Ext storage dir: " + Environment.getExternalStorageDirectory()); - //FilePathConverter uriObj = new FilePathConverter(this, mediaUri); - //String filePath = uriObj.getFilePath(); String filePath = getRealPathFromURI(mediaUri); - Log.d(TAG, "Filepath: " + filePath); //Using global singleton to get CacheController to last longer than the activity lifecycle