commit | 21686b32bb88c4385a06b89a14f77751c087e95a | [log] [tgz] |
---|---|---|
author | Chiao Cheng <chiaocheng@google.com> | Thu Apr 11 22:05:04 2013 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Apr 11 22:05:04 2013 +0000 |
tree | 12d97ccd0df8296138dab0910e55c4f84a692154 | |
parent | ce14d38b2ebb20174419f32d2172481976197afe [diff] | |
parent | 7f2cfab08aa48758531ab525ede518190f79d37f [diff] |
Merge "Check if cursor is closed." into jb-mr2-dev
diff --git a/src/com/android/contacts/group/GroupBrowseListAdapter.java b/src/com/android/contacts/group/GroupBrowseListAdapter.java index f1c3aba..f48e0a7 100644 --- a/src/com/android/contacts/group/GroupBrowseListAdapter.java +++ b/src/com/android/contacts/group/GroupBrowseListAdapter.java
@@ -103,7 +103,7 @@ @Override public int getCount() { - return mCursor == null ? 0 : mCursor.getCount(); + return (mCursor == null || mCursor.isClosed()) ? 0 : mCursor.getCount(); } @Override