summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/phonelookup/PhoneLookupComponent.java
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2017-12-22 16:59:32 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-27 13:50:03 -0800
commite1ec439563705d47f699a565c35eff4bc0dcbf61 (patch)
treef77970b4b9e9682355828fc810f5271801775bfe /java/com/android/dialer/phonelookup/PhoneLookupComponent.java
parent0e130eb65c12f52417c731e28330f96b8f71521d (diff)
Parameterized PhoneLookup with submessage type.
This allows indvidual PhoneLookups to define and deal mostly with their own submessage type (with the exception of trivial setter and getter methods for converting from/to PhoneLookupInfo). This also simplifies the FakePhoneLookup and tests which use it a bit, I think. Bug: 34672501 Test: unit PiperOrigin-RevId: 179976215 Change-Id: I2db1fc85771621be2f2afcd6af114d82680e30d0
Diffstat (limited to 'java/com/android/dialer/phonelookup/PhoneLookupComponent.java')
-rw-r--r--java/com/android/dialer/phonelookup/PhoneLookupComponent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/phonelookup/PhoneLookupComponent.java b/java/com/android/dialer/phonelookup/PhoneLookupComponent.java
index 6d1f9a2fc..f59886bcd 100644
--- a/java/com/android/dialer/phonelookup/PhoneLookupComponent.java
+++ b/java/com/android/dialer/phonelookup/PhoneLookupComponent.java
@@ -23,7 +23,7 @@ import dagger.Subcomponent;
@Subcomponent
public abstract class PhoneLookupComponent {
- public abstract PhoneLookup phoneLookup();
+ public abstract PhoneLookup<PhoneLookupInfo> phoneLookup();
public static PhoneLookupComponent get(Context context) {
return ((HasComponent) ((HasRootComponent) context.getApplicationContext()).component())