mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private String getRealPathFromURI(Uri contentUri) {
|
private String getRealPathFromURI(Uri contentUri) {
|
||||||
String[] proj = { MediaStore.Images.Media.DATA };
|
String[] proj = { MediaStore.Images.Media.DATA };
|
||||||
Cursor cursor = getContentResolver().query(contentUri, proj, null, null, null);
|
Cursor cursor = getContentResolver().query(contentUri, proj, null, null, null);
|
||||||
|
|
@ -173,7 +174,7 @@ public class ShareActivity
|
||||||
cursor.moveToFirst();
|
cursor.moveToFirst();
|
||||||
|
|
||||||
String cursorString = cursor.getString(column_index);
|
String cursorString = cursor.getString(column_index);
|
||||||
cursor.close();
|
//cursor.close();
|
||||||
return cursorString;
|
return cursorString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue