diff options
author | Andrew Lee <anwlee@google.com> | 2015-03-27 15:13:27 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-03-31 14:30:32 -0700 |
commit | 1d519b3deaf38e76feb9f1891cd2bd20d969e11d (patch) | |
tree | e405adff29475dcc05fc211bee8b4192578c5c47 /src | |
parent | c00378bb97a1c86fc20967817c1866d12a2c522f (diff) |
Don't return contacts photo manager as a service.
It will initialize itself if it does not exist, instead of relying
on getting a system service as the mechanism for initialization.
Bug: 19372817
Change-Id: Iae3eff986a79730bb2a8da9dcd4f28f664719673
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/DialerApplication.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/com/android/dialer/DialerApplication.java b/src/com/android/dialer/DialerApplication.java index 45457c648..7bc3bb4d3 100644 --- a/src/com/android/dialer/DialerApplication.java +++ b/src/com/android/dialer/DialerApplication.java @@ -40,18 +40,4 @@ public class DialerApplication extends Application { Trace.endSection(); Trace.endSection(); } - - @Override - public Object getSystemService(String name) { - if (ContactPhotoManager.CONTACT_PHOTO_SERVICE.equals(name)) { - if (mContactPhotoManager == null) { - mContactPhotoManager = ContactPhotoManager.createContactPhotoManager(this); - registerComponentCallbacks(mContactPhotoManager); - mContactPhotoManager.preloadPhotosInBackground(); - } - return mContactPhotoManager; - } - - return super.getSystemService(name); - } } |