Skip to content

Commit

Permalink
Use big text style so that the text is displayed fully
Browse files Browse the repository at this point in the history
  • Loading branch information
¨Jonathan authored and fynngodau committed Jan 22, 2024
1 parent 92e38d1 commit 46e8aac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ public void run() {
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
Expand Down

0 comments on commit 46e8aac

Please sign in to comment.