diff options
author | Yorke Lee <yorkelee@google.com> | 2013-07-31 14:12:50 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-07-31 14:12:50 -0700 |
commit | 63b92b5f2cc4d4099aed4c6d10cd24e1389e7a44 (patch) | |
tree | 3671fbb7d01643cf449d6c63225e40ea5313f824 | |
parent | bd47db14b534c2486632f1f61d36e3af6230b836 (diff) |
Report proper count in PhoneFavoritesTileAdapter
Change-Id: I63680fe604357b8b5cba3ce0a4a28d0d12e27c37
-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)); } |