Merge "Invoke the cursor.close() after loading data from database."

This commit is contained in:
TreeHugger Robot
2022-11-28 10:53:43 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}