mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Close cursor after use
This commit is contained in:
parent
9f0ad0f32a
commit
6eea283dc4
1 changed files with 4 additions and 1 deletions
|
|
@ -171,7 +171,10 @@ public class ShareActivity
|
|||
Cursor cursor = getContentResolver().query(contentUri, proj, null, null, null);
|
||||
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
|
||||
cursor.moveToFirst();
|
||||
return cursor.getString(column_index);
|
||||
|
||||
String cursorString = cursor.getString(column_index);
|
||||
cursor.close();
|
||||
return cursorString;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue