From 867006d29cd7f496dc92e988940f18f8fa201bf8 Mon Sep 17 00:00:00 2001 From: Nicholas Tinsley Date: Tue, 26 Sep 2023 16:55:46 -0400 Subject: [PATCH] Increase Bubble diagnostic logging. --- .../java/org/thoughtcrime/securesms/util/BubbleUtil.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/util/BubbleUtil.java b/app/src/main/java/org/thoughtcrime/securesms/util/BubbleUtil.java index ed08c75930..4b89cde5bc 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/util/BubbleUtil.java +++ b/app/src/main/java/org/thoughtcrime/securesms/util/BubbleUtil.java @@ -88,10 +88,13 @@ public final class BubbleUtil { bubbleLoggingMessage.append("\nconversationChannel = null"); } - Log.d(TAG, bubbleLoggingMessage.toString()); - return (Build.VERSION.SDK_INT < 31 || (notificationManager.areBubblesEnabled() && notificationManager.getBubblePreference() != NotificationManager.BUBBLE_PREFERENCE_NONE)) && - (notificationManager.areBubblesAllowed() || (conversationChannel != null && conversationChannel.canBubble())); + boolean canBubble = (Build.VERSION.SDK_INT < 31 || (notificationManager.areBubblesEnabled() && notificationManager.getBubblePreference() != NotificationManager.BUBBLE_PREFERENCE_NONE)) && + (notificationManager.areBubblesAllowed() || (conversationChannel != null && conversationChannel.canBubble())); + + bubbleLoggingMessage.append("\nComputed canBubble: ").append(canBubble); + Log.d(TAG, bubbleLoggingMessage.toString()); + return canBubble; } /**