From 21b13e2975180744020b0fb8c150e4a74c45e30c Mon Sep 17 00:00:00 2001 From: linyuh Date: Thu, 8 Feb 2018 10:44:50 -0800 Subject: 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 --- .../GlidePhotoManagerComponent.java | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java (limited to 'java/com/android/dialer/glidephotomanager/GlidePhotoManagerComponent.java') 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(); + } +} -- cgit v1.2.3