From 0b2626e433091f8ca75ab7018289ea8ec0ec8bbe Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Tue, 8 Aug 2017 20:49:57 -0700 Subject: 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 --- java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java/com/android/dialer/searchfragment/cp2') 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); -- cgit v1.2.3