Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 602e8c96 authored by ¨Jonathan's avatar ¨Jonathan
Browse files

Use big text style so that the text is displayed fully

parent a06ab00a
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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