Skip to content

Commit

Permalink
fix(android): clipped notification text and expand arrow (#286)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrés Zsögön <10298071+andreszs@users.noreply.github.com>
  • Loading branch information
erisu and andreszs authored Aug 31, 2024
1 parent cc9e9c4 commit 84731dd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/android/com/adobe/phonegap/push/FCMService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -906,13 +906,12 @@ class FCMService : FirebaseMessagingService() {
setNotification(notId, "")

message?.let { messageStr ->
val bigText = NotificationCompat.BigTextStyle().run {
bigText(fromHtml(messageStr))
setBigContentTitle(fromHtml(it.getString(PushConstants.TITLE)))
val bigText = NotificationCompat.BigTextStyle()
.bigText(fromHtml(messageStr))
.setBigContentTitle(fromHtml(it.getString(PushConstants.TITLE)))

it.getString(PushConstants.SUMMARY_TEXT)?.let { summaryText ->
setSummaryText(fromHtml(summaryText))
}
it.getString(PushConstants.SUMMARY_TEXT)?.let { summaryText ->
bigText.setSummaryText(fromHtml(summaryText))
}

mBuilder.setContentText(fromHtml(messageStr))
Expand Down

0 comments on commit 84731dd

Please sign in to comment.