diff options
author | Martin Herndl <martin.herndl@gmail.com> | 2015-12-05 14:19:24 +0100 |
---|---|---|
committer | Martin Herndl <martin.herndl@gmail.com> | 2015-12-05 17:35:15 +0100 |
commit | eecbb411eec420f04b4cf236e8205118ea7de789 (patch) | |
tree | aaa797a0abd988bbaa2c7161903279eb28a7c8fb /src | |
parent | 8920d421ee760ceab6efb491f956e06fa6b8bcf6 (diff) | |
download | packages_apps_InCallUI-eecbb411eec420f04b4cf236e8205118ea7de789.tar.gz packages_apps_InCallUI-eecbb411eec420f04b4cf236e8205118ea7de789.tar.bz2 packages_apps_InCallUI-eecbb411eec420f04b4cf236e8205118ea7de789.zip |
Enable reverse lookup by adding it as default PhoneNumberService
This is based on I66396b21cf4573e017bc2307441cde1959d34154 but puts
the ReverseLookupService directly into the default ObjectFactory
instead of fiddling with another ServiceFactory as in older versions.
Without this change the reverse lookup will never work because its
callback is not used anywhere.
Change-Id: Ia0adafa7edf117e7d4874fffb8019d1a0871c5b1
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/incalluibind/ObjectFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/incalluibind/ObjectFactory.java b/src/com/android/incalluibind/ObjectFactory.java index d8a2e297..22d02af0 100644 --- a/src/com/android/incalluibind/ObjectFactory.java +++ b/src/com/android/incalluibind/ObjectFactory.java @@ -21,12 +21,12 @@ import android.content.Intent; import com.android.incallui.CallCardPresenter.EmergencyCallListener; import com.android.incallui.service.PhoneNumberService; +import com.android.dialer.lookup.ReverseLookupService; public class ObjectFactory { public static PhoneNumberService newPhoneNumberService(Context context) { - // no phone number service. - return null; + return new ReverseLookupService(context); } public static EmergencyCallListener newEmergencyCallListener() { |