mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Tried commenting close cursor out
This commit is contained in:
parent
3caed68c28
commit
6d914148e6
1 changed files with 2 additions and 1 deletions
|
|
@ -166,6 +166,7 @@ public class ShareActivity
|
|||
finish();
|
||||
}
|
||||
|
||||
|
||||
private String getRealPathFromURI(Uri contentUri) {
|
||||
String[] proj = { MediaStore.Images.Media.DATA };
|
||||
Cursor cursor = getContentResolver().query(contentUri, proj, null, null, null);
|
||||
|
|
@ -173,7 +174,7 @@ public class ShareActivity
|
|||
cursor.moveToFirst();
|
||||
|
||||
String cursorString = cursor.getString(column_index);
|
||||
cursor.close();
|
||||
//cursor.close();
|
||||
return cursorString;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue