summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/dialer/list/NewPhoneFavoriteMergedAdapter.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/dialer/list/NewPhoneFavoriteMergedAdapter.java b/src/com/android/dialer/list/NewPhoneFavoriteMergedAdapter.java
index b350f026b..28604b963 100644
--- a/src/com/android/dialer/list/NewPhoneFavoriteMergedAdapter.java
+++ b/src/com/android/dialer/list/NewPhoneFavoriteMergedAdapter.java
@@ -73,9 +73,8 @@ public class NewPhoneFavoriteMergedAdapter extends BaseAdapter {
@Override
public boolean isEmpty() {
- // Cannot use the super's method here because we add extra rows in getCount() to account
- // for headers
- return mCallLogAdapter.getCount() + mContactTileAdapter.getCount() == 0;
+ // This adapter will always contain at least the all contacts button
+ return false;
}
@Override
@@ -94,7 +93,6 @@ public class NewPhoneFavoriteMergedAdapter extends BaseAdapter {
// Set position to the position of the actual favorite contact in the favorites adapter
position = getAdjustedFavoritePosition(position, callLogAdapterCount);
}
-
return mContactTileAdapter.getItem(position);
}