Fixing an NPE in Strequent view
Change-Id: Icf41f47a45829e3aae741d99a65bb91554977f9b
diff --git a/src/com/android/contacts/list/StrequentContactListAdapter.java b/src/com/android/contacts/list/StrequentContactListAdapter.java
index 4a72f63..10e0a55 100644
--- a/src/com/android/contacts/list/StrequentContactListAdapter.java
+++ b/src/com/android/contacts/list/StrequentContactListAdapter.java
@@ -35,7 +35,7 @@
*/
public class StrequentContactListAdapter extends ContactListAdapter {
- private int mFrequentSeparatorPos;
+ private int mFrequentSeparatorPos = ListView.INVALID_POSITION;
private TextView mSeparatorView;
private OnClickListener mCallButtonListener;
private int mCallButtonId;
@@ -83,8 +83,8 @@
}
@Override
- public void changeCursor(Cursor cursor) {
- super.changeCursor(cursor);
+ public void changeCursor(int partition, Cursor cursor) {
+ super.changeCursor(partition, cursor);
// Get the split between starred and frequent items, if the mode is strequent
mFrequentSeparatorPos = ListView.INVALID_POSITION;