diff options
author | Jay Shrauner <shrauner@google.com> | 2014-12-01 06:11:50 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-12-01 06:11:51 +0000 |
commit | cebe89352a0125b245385aac789451076b9cb934 (patch) | |
tree | 9aebdf75a0e944f5a3508fe5e7abd3d9215e93df | |
parent | 6fd0af777183672940974f7829b32100ac9fc5ca (diff) | |
parent | 4feb3036a523a2ebd02f637f9878ddc59d5fb8a0 (diff) | |
download | packages_apps_ContactsCommon-cebe89352a0125b245385aac789451076b9cb934.tar.gz packages_apps_ContactsCommon-cebe89352a0125b245385aac789451076b9cb934.tar.bz2 packages_apps_ContactsCommon-cebe89352a0125b245385aac789451076b9cb934.zip |
Merge "Fix cursor exception in changeCursor" into lmp-mr1-dev
-rw-r--r-- | src/com/android/contacts/common/list/ContactListAdapter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/contacts/common/list/ContactListAdapter.java b/src/com/android/contacts/common/list/ContactListAdapter.java index 7e9a2e94..9107d044 100644 --- a/src/com/android/contacts/common/list/ContactListAdapter.java +++ b/src/com/android/contacts/common/list/ContactListAdapter.java @@ -350,8 +350,7 @@ public abstract class ContactListAdapter extends ContactEntryListAdapter { super.changeCursor(partitionIndex, cursor); // Check if a profile exists - if (cursor != null && cursor.getCount() > 0) { - cursor.moveToFirst(); + if (cursor != null && cursor.moveToFirst()) { setProfileExists(cursor.getInt(ContactQuery.CONTACT_IS_USER_PROFILE) == 1); } } |