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;
if(cursor != null) {
try {
int column_index = cursor
.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
path = cursor.getString(column_index);
} finally {
cursor.close();
}
} else {
path = uri.getPath();
}

Loading…
Cancel
Save