diff options
author | Yorke Lee <yorkelee@google.com> | 2013-08-02 17:13:42 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-08-02 17:13:42 -0700 |
commit | d2ab481b09ce9e96f06067c019612eaec7145ce8 (patch) | |
tree | ec2f2c5d65bb78d509ac2a440ae64d5894016fc2 | |
parent | 4e5a8fceab42fcd09cc5d7632f51ef0afc433d6b (diff) |
Show the All Contacts button even if there are no favorites
Change-Id: Ic6a1ed35e990ad88fb9ba8eae3bdcd353ad03fbc
-rw-r--r-- | src/com/android/dialer/list/NewPhoneFavoriteMergedAdapter.java | 6 |
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); } |