Fix bubble desired height calculation.

This commit is contained in:
DivyaKhunt07
2026-02-17 12:49:32 +00:00
committed by Cody Henthorne
parent 7428e1e2ea
commit bd121e47c8
5 changed files with 63 additions and 5 deletions

View File

@@ -362,14 +362,13 @@ sealed class NotificationBuilder(protected val context: Context) {
if (intent != null) {
val bubbleMetadata = NotificationCompat.BubbleMetadata.Builder(intent, AvatarUtil.getIconCompat(context, conversation.recipient))
.setAutoExpandBubble(bubbleState === BubbleUtil.BubbleState.SHOWN)
.setDesiredHeight(600)
.setDesiredHeight(BubbleUtil.getDesiredBubbleHeightPx(context))
.setSuppressNotification(bubbleState === BubbleUtil.BubbleState.SHOWN)
.build()
builder.bubbleMetadata = bubbleMetadata
}
}
override fun setLights(@ColorInt color: Int, onTime: Int, offTime: Int) {
if (NotificationChannels.supported()) {
return