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);