mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Swallow too many pending intents exception.
This commit is contained in:
committed by
Alex Hart
parent
5115eb125d
commit
7e7bc13b62
@@ -148,13 +148,17 @@ object NotificationFactory {
|
||||
threadsThatNewlyAlerted += conversation.thread
|
||||
}
|
||||
|
||||
notifyForConversation(
|
||||
context = context,
|
||||
conversation = conversation,
|
||||
targetThread = targetThread,
|
||||
defaultBubbleState = defaultBubbleState,
|
||||
shouldAlert = (conversation.hasNewNotifications() || alertOverrides.contains(conversation.thread)) && !conversation.mostRecentNotification.individualRecipient.isSelf
|
||||
)
|
||||
try {
|
||||
notifyForConversation(
|
||||
context = context,
|
||||
conversation = conversation,
|
||||
targetThread = targetThread,
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user