diff options
author | Andrew Lee <anwlee@google.com> | 2014-05-29 21:04:28 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-29 21:04:28 +0000 |
commit | 00edc1314b8b1ebbf8f922e35e8fc2c7b1d69b15 (patch) | |
tree | 368f95b77f8774546281b8164cf32876a014451a /src | |
parent | 3fd684c995b8c12df7f82d680d5c065c4d66382f (diff) | |
parent | c987e00fa84f8997c07e8cb2d413897ae1d41b14 (diff) |
am c987e00f: Adjust call log text padding.
* commit 'c987e00fa84f8997c07e8cb2d413897ae1d41b14':
Adjust call log text padding.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 475262055..924a17fc2 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -578,7 +578,15 @@ public class CallLogAdapter extends GroupingListAdapter protected View newChildView(Context context, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.call_log_list_item, parent, false); - findAndCacheViews(view); + + // Get the views to bind to and cache them. + CallLogListItemViews views = CallLogListItemViews.fromView(view); + view.setTag(views); + + // Set text height to false on the TextViews so they don't have extra padding. + views.phoneCallDetailsViews.nameView.setElegantTextHeight(false); + views.phoneCallDetailsViews.callLocationAndDate.setElegantTextHeight(false); + return view; } @@ -599,9 +607,6 @@ public class CallLogAdapter extends GroupingListAdapter } private void findAndCacheViews(View view) { - // Get the views to bind to. - CallLogListItemViews views = CallLogListItemViews.fromView(view); - view.setTag(views); } /** |