summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-02 17:13:42 -0700
committerYorke Lee <yorkelee@google.com>2013-08-02 17:13:42 -0700
commitd2ab481b09ce9e96f06067c019612eaec7145ce8 (patch)
treeec2f2c5d65bb78d509ac2a440ae64d5894016fc2
parent4e5a8fceab42fcd09cc5d7632f51ef0afc433d6b (diff)
Show the All Contacts button even if there are no favorites
Change-Id: Ic6a1ed35e990ad88fb9ba8eae3bdcd353ad03fbc
-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);
}