diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-07 15:29:13 -0800 |
---|---|---|
committer | Ta-wei Yen <twyen@google.com> | 2016-03-07 15:29:13 -0800 |
commit | bcb15f99dff4e01343bb7470135f5392a65a01f4 (patch) | |
tree | 9b082d6cc0cd3e6f60e1270331d5a65fc4f03982 /src/com/android/dialer/DialtactsActivity.java | |
parent | 40026e882fa3e5bdc897606e4cb96ed6ac1bfbb9 (diff) |
Add contact photo for missed call notifications
+ ContactPhotoLoader to create the appropriate icon from a ContactInfo
- NameLookupQuery in CallLogNotificationsHelper#getContactInfo
To show a photo the name is not enough. Full query need to be made to
retrieve the photoUri.
+ class Assert in util
+ Gradle directory setup for dialer tests
(Note: this is just for project setup in Android Studio, tests are
still not runnable in gradle)
Bug:27276108
Change-Id: I0ed2147f2bb60454fe5a5ad6c25fe99727441880
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index e775b0ad1..025d3ebdd 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -16,9 +16,6 @@ package com.android.dialer; -import com.android.dialer.voicemail.VoicemailArchiveActivity; -import com.google.common.annotations.VisibleForTesting; - import android.app.Fragment; import android.app.FragmentTransaction; import android.content.ActivityNotFoundException; @@ -65,7 +62,6 @@ import com.android.contacts.common.interactions.TouchPointManager; import com.android.contacts.common.list.OnPhoneNumberPickerActionListener; import com.android.contacts.common.util.PermissionsUtil; import com.android.contacts.common.widget.FloatingActionButtonController; -import com.android.contacts.commonbind.analytics.AnalyticsUtil; import com.android.dialer.calllog.CallLogActivity; import com.android.dialer.calllog.CallLogFragment; import com.android.dialer.database.DialerDatabaseHelper; @@ -85,18 +81,19 @@ import com.android.dialer.list.SpeedDialFragment; import com.android.dialer.logging.Logger; import com.android.dialer.logging.ScreenEvent; import com.android.dialer.settings.DialerSettingsActivity; +import com.android.dialer.util.Assert; import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil; import com.android.dialer.util.IntentUtil.CallIntentBuilder; import com.android.dialer.util.TelecomUtil; +import com.android.dialer.voicemail.VoicemailArchiveActivity; import com.android.dialer.widget.ActionBarController; import com.android.dialer.widget.SearchEditTextLayout; import com.android.dialerbind.DatabaseHelperManager; import com.android.dialerbind.ObjectFactory; import com.android.phone.common.animation.AnimUtils; import com.android.phone.common.animation.AnimationListenerAdapter; - -import junit.framework.Assert; +import com.google.common.annotations.VisibleForTesting; import java.util.ArrayList; import java.util.List; |