Swallow too many pending intents exception.

fork-5.53.8
Cody Henthorne 2022-05-25 10:50:06 -04:00 zatwierdzone przez Alex Hart
rodzic 5115eb125d
commit 7e7bc13b62
1 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -148,6 +148,7 @@ object NotificationFactory {
threadsThatNewlyAlerted += conversation.thread
}
try {
notifyForConversation(
context = context,
conversation = conversation,
@ -155,6 +156,9 @@ object NotificationFactory {
defaultBubbleState = defaultBubbleState,
shouldAlert = (conversation.hasNewNotifications() || alertOverrides.contains(conversation.thread)) && !conversation.mostRecentNotification.individualRecipient.isSelf
)
} catch (e: SecurityException) {
Log.w(TAG, "Too many pending intents device quirk", e)
}
}
}