diff options
author | Eric Erfanian <erfanian@google.com> | 2017-08-29 21:58:45 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-30 07:17:04 -0700 |
commit | 24dbc840985b12a8e61e6e190e8508c72d58bcae (patch) | |
tree | 4f1d3229eca3d62b3faf5b481a60fbad5ab7e072 /java/com/android/incallui/spam/SpamCallListListener.java | |
parent | 4e9a7930756e2e1dbfba20355f8f716987835a3a (diff) |
Make incallui/spam a standalone build target
Previously incallui/spam was being built directly into the incallui
build target. With this CL it's now a standalone build target.
This change should make it easier to test spam notifications.
Bug: 62937258
Test: N/A
Change-Id: I5f238ed7f9a4eaaff4b2a325479d2b6de19bdf07
PiperOrigin-RevId: 165479077
Diffstat (limited to 'java/com/android/incallui/spam/SpamCallListListener.java')
-rw-r--r-- | java/com/android/incallui/spam/SpamCallListListener.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/java/com/android/incallui/spam/SpamCallListListener.java b/java/com/android/incallui/spam/SpamCallListListener.java index 997d4d6bc..f8bc9cebe 100644 --- a/java/com/android/incallui/spam/SpamCallListListener.java +++ b/java/com/android/incallui/spam/SpamCallListListener.java @@ -50,7 +50,6 @@ import com.android.dialer.notification.NotificationChannelId; import com.android.dialer.spam.Spam; import com.android.dialer.telecom.TelecomUtil; import com.android.dialer.util.PermissionsUtil; -import com.android.incallui.R; import com.android.incallui.call.CallList; import com.android.incallui.call.DialerCall; import com.android.incallui.call.DialerCall.CallHistoryStatus; @@ -90,7 +89,7 @@ public class SpamCallListListener implements CallList.Listener { /** Checks if the number is in the call history. */ @TargetApi(VERSION_CODES.M) - private final class NumberInCallHistoryWorker implements Worker<Void, Integer> { + private static final class NumberInCallHistoryWorker implements Worker<Void, Integer> { private final Context appContext; private final String number; @@ -262,7 +261,7 @@ public class SpamCallListListener implements CallList.Listener { .setCategory(Notification.CATEGORY_STATUS) .setPriority(Notification.PRIORITY_DEFAULT) .setColor(context.getColor(R.color.dialer_theme_color)) - .setSmallIcon(R.drawable.ic_call_end_white_24dp) + .setSmallIcon(R.drawable.quantum_ic_call_end_vd_theme_24) .setGroup(GROUP_KEY); if (BuildCompat.isAtLeastO()) { builder.setChannelId(NotificationChannelId.DEFAULT); @@ -289,7 +288,7 @@ public class SpamCallListListener implements CallList.Listener { // Add contact .addAction( new Notification.Action.Builder( - R.drawable.ic_person_add_grey600_24dp, + R.drawable.quantum_ic_person_add_vd_theme_24, context.getString(R.string.spam_notification_add_contact_action_text), createActivityPendingIntent( call, SpamNotificationActivity.ACTION_ADD_TO_CONTACTS)) @@ -297,7 +296,7 @@ public class SpamCallListListener implements CallList.Listener { // Block/report spam .addAction( new Notification.Action.Builder( - R.drawable.ic_block_grey600_24dp, + R.drawable.quantum_ic_block_vd_theme_24, context.getString(R.string.spam_notification_report_spam_action_text), createBlockReportSpamPendingIntent(call)) .build()) @@ -401,14 +400,14 @@ public class SpamCallListListener implements CallList.Listener { // Not spam .addAction( new Notification.Action.Builder( - R.drawable.ic_close_grey600_24dp, + R.drawable.quantum_ic_close_vd_theme_24, context.getString(R.string.spam_notification_not_spam_action_text), createNotSpamPendingIntent(call)) .build()) // Block/report spam .addAction( new Notification.Action.Builder( - R.drawable.ic_block_grey600_24dp, + R.drawable.quantum_ic_block_vd_theme_24, context.getString(R.string.spam_notification_block_spam_action_text), createBlockReportSpamPendingIntent(call)) .build()) |