From ac7e7a242453565c0f2b1c4c4e16435de9e7c017 Mon Sep 17 00:00:00 2001 From: Raphael Mack Date: Fri, 25 Oct 2019 21:33:38 +0200 Subject: [PATCH] make the notification expandable to read the full translation --- app/src/main/java/org/piwigo/helper/NotificationHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/piwigo/helper/NotificationHelper.java b/app/src/main/java/org/piwigo/helper/NotificationHelper.java index 76fe7ff7..0978398d 100644 --- a/app/src/main/java/org/piwigo/helper/NotificationHelper.java +++ b/app/src/main/java/org/piwigo/helper/NotificationHelper.java @@ -72,7 +72,8 @@ public void sendNotification(String title, String body, Context context) .setContentText(body) .setAutoCancel(true) .setSound(sound) - .setContentIntent(pi); + .setContentIntent(pi) + .setStyle(new NotificationCompat.BigTextStyle().bigText(body)); NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);