summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/calllog/CallTypeIconsView.java
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2014-11-12 17:01:47 -0800
committerMatt Garnes <matt@cyngn.com>2014-12-12 13:12:51 -0800
commit8d60c5e588adb7ca358e1bdcc6f387b52fb527c0 (patch)
tree2617234b31c1cd0c05a247e61278d5a4830b7181 /src/com/android/dialer/calllog/CallTypeIconsView.java
parenta5dd8c16878ee9dd7e60a0a4523b92df41078a49 (diff)
downloadandroid_packages_apps_Dialer-8d60c5e588adb7ca358e1bdcc6f387b52fb527c0.tar.gz
android_packages_apps_Dialer-8d60c5e588adb7ca358e1bdcc6f387b52fb527c0.tar.bz2
android_packages_apps_Dialer-8d60c5e588adb7ca358e1bdcc6f387b52fb527c0.zip
Dialer: add blacklist call logging (3/3)
Change-Id: Ie569981381d46c8946a603795fe072df106546b0 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/dialer/calllog/CallTypeIconsView.java')
-rwxr-xr-x[-rw-r--r--]src/com/android/dialer/calllog/CallTypeIconsView.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/CallTypeIconsView.java b/src/com/android/dialer/calllog/CallTypeIconsView.java
index ef729ae39..719551320 100644..100755
--- a/src/com/android/dialer/calllog/CallTypeIconsView.java
+++ b/src/com/android/dialer/calllog/CallTypeIconsView.java
@@ -40,7 +40,7 @@ import java.util.List;
* for ListView-recycling that a regular LinearLayout using ImageViews.
*/
public class CallTypeIconsView extends View {
- private List<Integer> mCallTypes = Lists.newArrayListWithCapacity(3);
+ private List<Integer> mCallTypes = Lists.newArrayListWithCapacity(4);
private boolean mShowVideo = false;
private Resources mResources;
private int mWidth;
@@ -114,6 +114,9 @@ public class CallTypeIconsView extends View {
return mResources.missed;
case Calls.VOICEMAIL_TYPE:
return mResources.voicemail;
+ case Calls.BLACKLIST_TYPE:
+ return mResources.blacklist;
+
default:
// It is possible for users to end up with calls with unknown call types in their
// call history, possibly due to 3rd party call log implementations (e.g. to
@@ -176,10 +179,16 @@ public class CallTypeIconsView extends View {
public final Drawable videoCall;
/**
+ * Drawable representing blacklisted call.
+ */
+ public final Drawable blacklist;
+
+ /**
* The margin to use for icons.
*/
public final int iconMargin;
+
/**
* Configures the call icon drawables.
* A single white call arrow which points down and left is used as a basis for all of the
@@ -201,7 +210,8 @@ public class CallTypeIconsView extends View {
// above will be recolored here.
missed = r.getDrawable(R.drawable.ic_call_arrow).mutate();
missed.setColorFilter(r.getColor(R.color.missed_call), PorterDuff.Mode.MULTIPLY);
-
+ blacklist = r.getDrawable(R.drawable.ic_call_arrow).mutate();
+ blacklist.setColorFilter(0x000, PorterDuff.Mode.MULTIPLY);
voicemail = r.getDrawable(R.drawable.ic_call_voicemail_holo_dark);
// Get the video call icon, scaled to match the height of the call arrows.