diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-09-09 18:34:41 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-09-11 11:38:29 -0700 |
commit | 704acc087ce359295475a46695c2821c55778344 (patch) | |
tree | dc52a3b8b6e0d6ade3d063b9f9b1769d1d8950e6 /src/com/android/dialer/calllog/CallLogFragment.java | |
parent | e288297636efc10164fc1d928f9cab3d7a07557a (diff) |
Add enable reverse number lookup link to call card.
Bug: 10525344
Change-Id: I6f01110e76222a2558374426675e285cfca5801b
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogFragment.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 9808d073b..d0d34d897 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -30,13 +30,9 @@ import android.provider.CallLog; import android.provider.CallLog.Calls; import android.provider.ContactsContract; import android.telephony.PhoneNumberUtils; -import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.util.Log; import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; @@ -50,8 +46,8 @@ import com.android.dialer.util.EmptyLoader; import com.android.dialer.voicemail.VoicemailStatusHelper; import com.android.dialer.voicemail.VoicemailStatusHelper.StatusMessage; import com.android.dialer.voicemail.VoicemailStatusHelperImpl; +import com.android.dialerbind.ObjectFactory; import com.android.internal.telephony.ITelephony; -import com.google.common.annotations.VisibleForTesting; import java.util.List; @@ -234,8 +230,8 @@ public class CallLogFragment extends ListFragment super.onViewCreated(view, savedInstanceState); updateEmptyMessage(mCallTypeFilter); String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity()); - mAdapter = new CallLogAdapter(getActivity(), this, - new ContactInfoHelper(getActivity(), currentCountryIso), false); + mAdapter = ObjectFactory.newCallLogAdapter(getActivity(), this, new ContactInfoHelper( + getActivity(), currentCountryIso), false, true); setListAdapter(mAdapter); getListView().setItemsCanFocus(true); } |