From f2d31a1706c188b5cc1e522f21adcb2a91c78a3d Mon Sep 17 00:00:00 2001 From: Android Dialer Date: Thu, 17 May 2018 20:21:39 -0700 Subject: Update spam blocking promotion wordings. Bug: 79884797 Test: N/A PiperOrigin-RevId: 197092298 Change-Id: I2f94f9a66a2530a5f2d0ad6630993a2e7b2b4bb8 --- .../dialer/spam/promo/SpamBlockingPromoHelper.java | 4 +++ .../res/drawable/spam_blocking_promo_icon.xml | 34 ++++++++++++++++++++++ .../dialer/spam/promo/res/values/strings.xml | 7 +++-- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 java/com/android/dialer/spam/promo/res/drawable/spam_blocking_promo_icon.xml diff --git a/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java b/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java index e9f7cc6c1..c7bf53696 100644 --- a/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java +++ b/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java @@ -23,6 +23,7 @@ import android.app.Notification.Builder; import android.app.PendingIntent; import android.content.Context; import android.content.DialogInterface.OnDismissListener; +import android.graphics.drawable.Icon; import android.support.design.widget.Snackbar; import android.support.v4.os.BuildCompat; import android.view.View; @@ -179,6 +180,8 @@ public class SpamBlockingPromoHelper { .setPriority(Notification.PRIORITY_DEFAULT) .setColor(context.getColor(R.color.dialer_theme_color)) .setSmallIcon(R.drawable.quantum_ic_call_vd_theme_24) + .setLargeIcon(Icon.createWithResource(context, R.drawable.spam_blocking_promo_icon)) + .setContentText(context.getString(R.string.spam_blocking_promo_text)) .setStyle( new Notification.BigTextStyle() .bigText(context.getString(R.string.spam_blocking_promo_text))) @@ -196,3 +199,4 @@ public class SpamBlockingPromoHelper { return builder.build(); } } + diff --git a/java/com/android/dialer/spam/promo/res/drawable/spam_blocking_promo_icon.xml b/java/com/android/dialer/spam/promo/res/drawable/spam_blocking_promo_icon.xml new file mode 100644 index 000000000..9b35bcbc4 --- /dev/null +++ b/java/com/android/dialer/spam/promo/res/drawable/spam_blocking_promo_icon.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + diff --git a/java/com/android/dialer/spam/promo/res/values/strings.xml b/java/com/android/dialer/spam/promo/res/values/strings.xml index 037e83b01..91036beec 100644 --- a/java/com/android/dialer/spam/promo/res/values/strings.xml +++ b/java/com/android/dialer/spam/promo/res/values/strings.xml @@ -17,9 +17,10 @@ - Also filter suspected spam calls? - - You won\'t be disturbed by incoming suspected spam calls + Filter all suspected spam calls? + + Calls like the one you just blocked will no longer + disturb you Filter Spam -- cgit v1.2.3