diff options
author | linyuh <linyuh@google.com> | 2018-02-08 10:44:50 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-09 16:46:38 -0800 |
commit | 21b13e2975180744020b0fb8c150e4a74c45e30c (patch) | |
tree | 398fb87ed742538e427373e6928822ce1747387f /java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java | |
parent | d4264575756e50c249ce26e8e12206aa3b4257a6 (diff) |
Show icon and label for a spam number in the new call log.
Bug: 73077158
Test: CallLogEntryTextTest, GlidePhotoManagerImplTest, PhoneLookupInfoConsolidatorTest
PiperOrigin-RevId: 185017362
Change-Id: I113472482da2213d17a847054272a22249edc578
Diffstat (limited to 'java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java')
-rw-r--r-- | java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java b/java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java new file mode 100644 index 000000000..b4699be54 --- /dev/null +++ b/java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2018 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.dialer.glidephotomanager; + +import android.content.Context; +import com.android.dialer.inject.HasRootComponent; +import dagger.Subcomponent; + +/** Entry point for {@link GlidePhotoManager} */ +@Subcomponent +public abstract class GlidePhotoManagerComponent { + + public abstract GlidePhotoManager glidePhotoManager(); + + public static GlidePhotoManagerComponent get(Context context) { + return ((HasComponent) ((HasRootComponent) context.getApplicationContext()).component()) + .glidePhotoManagerComponent(); + } + + /** Used to refer to the root application component. */ + public interface HasComponent { + GlidePhotoManagerComponent glidePhotoManagerComponent(); + } +} |