diff options
author | Yorke Lee <yorkelee@google.com> | 2013-07-31 22:05:34 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-07-31 22:05:34 +0000 |
commit | 0c94746842edd8e3fcc47f9eaa75a4a6512bac6d (patch) | |
tree | 6dc1e5604f9d3b0d6212cacc07578b21d052634c | |
parent | 0fb95f01f5b17ac3e19f2b336c1d8e69e513edc0 (diff) | |
parent | 63b92b5f2cc4d4099aed4c6d10cd24e1389e7a44 (diff) |
Merge "Report proper count in PhoneFavoritesTileAdapter"
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoritesTileAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java index 0a08f2caf..d14190ea6 100644 --- a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java +++ b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java @@ -101,7 +101,7 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter { /** Indicates whether a drag is in process. */ private boolean mInDragging = false; - public PhoneFavoritesTileAdapter(Context context, ContactTileView.Listener listener, + public PhoneFavoritesTileAdapter(Context context, ContactTileView.Listener listener, int numCols) { this(context, listener, numCols, ROW_LIMIT_DEFAULT); } @@ -284,7 +284,7 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter { return 0; } - int total = mNumFrequents + mNumStarred; + int total = mContactEntries.size(); return total - (mMaxTiledRows * (mColumnCount - 1)); } |