Stop calling close on a managed cursor

pull/14/head
Tim Su 14 years ago
parent 09b3171fe7
commit 508a326b5a

@ -137,14 +137,10 @@ public class ActFmCameraModule {
String path; String path;
if(cursor != null) { if(cursor != null) {
try {
int column_index = cursor int column_index = cursor
.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst(); cursor.moveToFirst();
path = cursor.getString(column_index); path = cursor.getString(column_index);
} finally {
cursor.close();
}
} else { } else {
path = uri.getPath(); path = uri.getPath();
} }

Loading…
Cancel
Save