diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-12 14:17:28 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-12 16:22:44 -0700 |
commit | bb48628db6fd444460df61be7afa7fb633f47f50 (patch) | |
tree | dcba12ac76eadcbee097b6bc57fa993556f700ec /src/com/android/dialer/calllog/CallLogFragment.java | |
parent | 92e8d005feb26e1444fea59fbba91a42a370b58d (diff) |
Indicate whether CallLogAdapter is for Recents.
Bug: 20924950
Change-Id: I6163565ec508d245afd83112927d636a4a50f27e
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogFragment.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 02970f66c..4948176c1 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -281,11 +281,13 @@ public class CallLogFragment extends Fragment mRecyclerView.setLayoutManager(mLayoutManager); String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity()); - mAdapter = ObjectFactory.newCallLogAdapter(getActivity(), this, - new ContactInfoHelper(getActivity(), currentCountryIso), this); - if (mLogLimit != NO_LOG_LIMIT || mDateLimit != NO_DATE_LIMIT) { - mAdapter.setShowCallHistoryListItem(true); - } + boolean isShowingRecentsTab = mLogLimit != NO_LOG_LIMIT || mDateLimit != NO_DATE_LIMIT; + mAdapter = ObjectFactory.newCallLogAdapter( + getActivity(), + this, + new ContactInfoHelper(getActivity(), currentCountryIso), + isShowingRecentsTab, + this); mRecyclerView.setAdapter(mAdapter); mVoicemailStatusHelper = new VoicemailStatusHelperImpl(); |