diff options
author | Yorke Lee <yorkelee@google.com> | 2013-07-31 15:02:55 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-07-31 15:02:55 -0700 |
commit | 55d3bb4a7f70d4a4359c31b3240f5740b788e643 (patch) | |
tree | 0ef038f8988a4f785b45aea472892c55f3f6f6fa | |
parent | bd47db14b534c2486632f1f61d36e3af6230b836 (diff) |
Add debug check to PhoneFavoritesTileAdapter.getView
Change-Id: If8689796e648552c22e7605a8ebfd1e74a92e6ec
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoritesTileAdapter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java index 0a08f2caf..ead0e1af4 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); } @@ -433,7 +433,9 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter { @Override public View getView(int position, View convertView, ViewGroup parent) { - Log.v(TAG, "get view for " + String.valueOf(position)); + if (DEBUG) { + Log.v(TAG, "get view for " + String.valueOf(position)); + } int itemViewType = getItemViewType(position); ContactTileRow contactTileRowView = (ContactTileRow) convertView; |