mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
close cursors after querying phone db
This commit is contained in:
parent
e623e28487
commit
2274c38726
@ -64,6 +64,7 @@ public class PhoneHelper {
|
||||
if (listener != null) {
|
||||
listener.onPhoneContactsLoaded(phoneContacts);
|
||||
}
|
||||
cursor.close();
|
||||
}
|
||||
});
|
||||
try {
|
||||
@ -85,6 +86,7 @@ public class PhoneHelper {
|
||||
} else {
|
||||
mProfileCursor.moveToFirst();
|
||||
String uri = mProfileCursor.getString(1);
|
||||
mProfileCursor.close();
|
||||
if (uri == null) {
|
||||
return null;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user