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

Commit 8e922024 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '1644-t-use-big-text-style' into 'master'

Use big text style notification

See merge request !101
parents a06ab00a 602e8c96
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