mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Fix bubble desired height calculation.
This commit is contained in:
committed by
Cody Henthorne
parent
7428e1e2ea
commit
bd121e47c8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user