diff options
author | Eric Erfanian <erfanian@google.com> | 2017-03-27 12:31:48 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-03-27 12:31:48 -0700 |
commit | 9779f967ebb9512e5b19090b071572c9c4f0f2a6 (patch) | |
tree | 55d3e81855905643abd7b3ce5576a58ee0e9d9e6 /java/com/android/dialer/app/calllog/CallLogAdapter.java | |
parent | 9050823ccf6f512e06ad65c8a741cb17cbc4a833 (diff) | |
download | android_packages_apps_Dialer-9779f967ebb9512e5b19090b071572c9c4f0f2a6.tar.gz android_packages_apps_Dialer-9779f967ebb9512e5b19090b071572c9c4f0f2a6.tar.bz2 android_packages_apps_Dialer-9779f967ebb9512e5b19090b071572c9c4f0f2a6.zip |
Update AOSP Dialer source from internal google3 repository at
cl/151342913.
Test: make, treehugger
This CL updates the AOSP Dialer source with all the changes that have
gone into the private google3 repository. This includes all the
changes from cl/151128062 (3/24/2017) to cl/151342913 (3/27/2017).
This goal of these drops is to keep the AOSP source in sync with the
internal google3 repository. Currently these sync are done by hand
with very minor modifications to the internal source code.
See the Android.mk file for list of modifications.
Our current goal is to do frequent drops (daily if possible) and
eventually switched to an automated process.
Change-Id: I8d4855628b62e9067e71f32ed40317617a1e3b02
Diffstat (limited to 'java/com/android/dialer/app/calllog/CallLogAdapter.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogAdapter.java | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogAdapter.java b/java/com/android/dialer/app/calllog/CallLogAdapter.java index b23e18d6b..301fc009e 100644 --- a/java/com/android/dialer/app/calllog/CallLogAdapter.java +++ b/java/com/android/dialer/app/calllog/CallLogAdapter.java @@ -58,9 +58,9 @@ import com.android.dialer.calldetails.nano.CallDetailsEntries.CallDetailsEntry; import com.android.dialer.calllogutils.PhoneAccountUtils; import com.android.dialer.calllogutils.PhoneCallDetails; import com.android.dialer.common.Assert; -import com.android.dialer.common.AsyncTaskExecutor; -import com.android.dialer.common.AsyncTaskExecutors; import com.android.dialer.common.LogUtil; +import com.android.dialer.common.concurrent.AsyncTaskExecutor; +import com.android.dialer.common.concurrent.AsyncTaskExecutors; import com.android.dialer.enrichedcall.EnrichedCallCapabilities; import com.android.dialer.enrichedcall.EnrichedCallComponent; import com.android.dialer.enrichedcall.EnrichedCallManager; @@ -457,6 +457,7 @@ public class CallLogAdapter extends GroupingListAdapter final long rowId, final PhoneCallDetails details, final CallDetailsEntries callDetailsEntries) { + LogUtil.d("CallLogAdapter.loadAndRender", "position: %d", views.getAdapterPosition()); // Reset block and spam information since this view could be reused which may contain // outdated data. views.isSpam = false; @@ -667,12 +668,13 @@ public class CallLogAdapter extends GroupingListAdapter && !isVoicemailNumber) { // Lookup contacts with this number // Only do remote lookup in first 5 rows. + int position = views.getAdapterPosition(); info = mContactInfoCache.getValue( details.number + details.postDialDigits, details.countryIso, details.cachedContactInfo, - rowId + position < Bindings.get(mActivity) .getConfigProvider() .getLong("number_of_call_to_do_remote_lookup", 5L)); @@ -699,6 +701,17 @@ public class CallLogAdapter extends GroupingListAdapter details.objectId = info.objectId; details.contactUserType = info.userType; } + LogUtil.d( + "CallLogAdapter.loadData", + "position:%d, update geo info: %s, cequint caller id geo: %s, photo uri: %s <- %s", + views.getAdapterPosition(), + details.geocode, + info.geoDescription, + details.photoUri, + info.photoUri); + if (!TextUtils.isEmpty(info.geoDescription)) { + details.geocode = info.geoDescription; + } views.info = info; views.numberType = |