diff options
author | calderwoodra <calderwoodra@google.com> | 2017-08-08 20:49:57 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-09 17:34:10 -0700 |
commit | 0b2626e433091f8ca75ab7018289ea8ec0ec8bbe (patch) | |
tree | 0c9cabbccb92841f779cf03082b651f463d28a1a /java/com/android/dialer/searchfragment/cp2 | |
parent | d021f7a61ae8debee8e2b3ca69a6aee99be41753 (diff) |
Added remote directories to the new search fragment.
When Dialer users search for contacts, if they have an enterprise account on
their device, they can also search for enterprise/remote contacts. This change
adds the directory queries/results to the new search fragment.
screenshot: http://screen/S9mpsvnwtCv
Bug: 37209462
Test: javatests/.../searchfragment/remote
PiperOrigin-RevId: 164681686
Change-Id: I88bc5bceb4c745d8f6f7d9651929d49100283756
Diffstat (limited to 'java/com/android/dialer/searchfragment/cp2')
-rw-r--r-- | java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java b/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java index 2bd9cdd8a..1e8224ddb 100644 --- a/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java +++ b/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java @@ -110,6 +110,7 @@ public final class SearchContactViewHolder extends ViewHolder implements OnClick } } + // Show the contact photo next to only the first number if a contact has multiple numbers private boolean shouldShowPhoto(SearchCursor cursor) { int currentPosition = cursor.getPosition(); String currentLookupKey = cursor.getString(Projections.PHONE_LOOKUP_KEY); |