From a2fefe570aa96b4425de589e9e38a150c0182228 Mon Sep 17 00:00:00 2001 From: Android Dialer Date: Wed, 2 May 2018 10:51:08 -0700 Subject: Set description of spam blocking promo notification to big text so it won't get cut off. Test: N/A PiperOrigin-RevId: 195116198 Change-Id: Ic0802144c6e52ec56e14ceb012bee1b6c774f826 --- java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'java') diff --git a/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java b/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java index 6a8cde864..a117e1908 100644 --- a/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java +++ b/java/com/android/dialer/spam/promo/SpamBlockingPromoHelper.java @@ -168,7 +168,9 @@ public class SpamBlockingPromoHelper { .setPriority(Notification.PRIORITY_DEFAULT) .setColor(context.getColor(R.color.dialer_theme_color)) .setSmallIcon(R.drawable.quantum_ic_call_vd_theme_24) - .setContentText(context.getString(R.string.spam_blocking_promo_text)) + .setStyle( + new Notification.BigTextStyle() + .bigText(context.getString(R.string.spam_blocking_promo_text))) .addAction( new Notification.Action.Builder( R.drawable.quantum_ic_block_vd_theme_24, -- cgit v1.2.3