Merge "Invoke the cursor.close() after loading data from database."
This commit is contained in:
committed by
Android (Google) Code Review
commit
76eabc6c7c
@@ -263,6 +263,11 @@ public final class DatabaseUtils {
|
||||
}
|
||||
batteryHistEntryMap.put(key, entry);
|
||||
}
|
||||
try {
|
||||
cursor.close();
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "cursor.close() failed", e);
|
||||
}
|
||||
}
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user