From 602e8c96c1df1adf556bb1448dc402e09fc13a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A8Jonathan?= <¨jonathan.klee@e.email¨> Date: Wed, 17 Jan 2024 09:09:20 +0100 Subject: [PATCH] Use big text style so that the text is displayed fully --- .../vending/licensing/LicenseServiceNotificationRunnable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vending-app/src/main/java/com/android/vending/licensing/LicenseServiceNotificationRunnable.java b/vending-app/src/main/java/com/android/vending/licensing/LicenseServiceNotificationRunnable.java index 9084e2dd0..4d3ac84de 100644 --- a/vending-app/src/main/java/com/android/vending/licensing/LicenseServiceNotificationRunnable.java +++ b/vending-app/src/main/java/com/android/vending/licensing/LicenseServiceNotificationRunnable.java @@ -73,11 +73,13 @@ public class LicenseServiceNotificationRunnable implements Runnable { context, callerUid * 2 + 1, ignoreIntent, PendingIntent.FLAG_MUTABLE ); + String contentText = context.getString(R.string.license_notification_body); Notification notification = new NotificationCompat.Builder(context, CHANNEL_ID) .setSmallIcon(R.drawable.ic_notification) .setSound(null) .setContentTitle(context.getString(R.string.license_notification_title, callerAppName)) - .setContentText(context.getString(R.string.license_notification_body)) + .setContentText(contentText) + .setStyle(new NotificationCompat.BigTextStyle().bigText(contentText)) .addAction( new NotificationCompat.Action.Builder( null, context.getString(R.string.license_notification_sign_in), authPendingIntent -- GitLab