commit | 65914fbf2cdca3ed64865cae86becb7ef00eb928 | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Wed Jun 16 17:18:05 2010 -0700 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Wed Jun 16 17:18:05 2010 -0700 |
tree | 93344dcaa2ff1af9030f4c870dae00c29d96abaa | |
parent | 469c6cc2226a9454bda86cd5aa95e771ab09fdb8 [diff] |
Fixing ArrayOutOfBounds in Strequent view Change-Id: Ia21b5d4473ed764c4c427016aeb07b33d2c55b7b
diff --git a/src/com/android/contacts/list/StrequentContactListAdapter.java b/src/com/android/contacts/list/StrequentContactListAdapter.java index 10e0a55..b5aec28 100644 --- a/src/com/android/contacts/list/StrequentContactListAdapter.java +++ b/src/com/android/contacts/list/StrequentContactListAdapter.java
@@ -83,6 +83,15 @@ } @Override + protected void invalidate() { + super.invalidate(); + + // Sometimes the adapter is invalidated without calling changeCursor, + // need to reset the separator position then. + mFrequentSeparatorPos = ListView.INVALID_POSITION; + } + + @Override public void changeCursor(int partition, Cursor cursor) { super.changeCursor(partition, cursor);