summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/searchfragment/testing/TestSearchCursor.java
diff options
context:
space:
mode:
authorcalderwoodra <calderwoodra@google.com>2017-08-31 02:01:35 -0700
committerEric Erfanian <erfanian@google.com>2017-09-06 16:42:02 -0700
commitdede7e703541f81af4533ce4a53f18f327090568 (patch)
treee85d530eef4e2ffe4b450ff937c188832ed22d72 /java/com/android/dialer/searchfragment/testing/TestSearchCursor.java
parent6627396c33440abd1bd32daa617aa4848be167e1 (diff)
NewSearchFragment contact photos now properly open quick contact cards.
There was an issue where businesses' and remote contacts' contact photos wouldn't open contact cards correctly. The issue was rooted in the incorrect contact uri being assigned to the quick contact badge. from the bugbash: 16. Tap on business icon from search results says “ no application found” instead of opening the business info 17. Same as #16 but with contact from Directory Google.com - “The contact doesn’t exist” when tapping contact icon Bug: 64902476 Test: existing PiperOrigin-RevId: 167111016 Change-Id: I4b6f7ca812d2fc4dc220951e8c05db2c8b8d6114
Diffstat (limited to 'java/com/android/dialer/searchfragment/testing/TestSearchCursor.java')
-rw-r--r--java/com/android/dialer/searchfragment/testing/TestSearchCursor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/com/android/dialer/searchfragment/testing/TestSearchCursor.java b/java/com/android/dialer/searchfragment/testing/TestSearchCursor.java
index 9a0b95789..7e6299eac 100644
--- a/java/com/android/dialer/searchfragment/testing/TestSearchCursor.java
+++ b/java/com/android/dialer/searchfragment/testing/TestSearchCursor.java
@@ -44,4 +44,9 @@ public final class TestSearchCursor extends MergeCursor implements SearchCursor
public boolean updateQuery(@Nullable String query) {
return false;
}
+
+ @Override
+ public long getDirectoryId() {
+ return 0;
+ }
}