1
0
Fork 1

Make sure everything is set up is better than a crash?

(cherry picked from commit fbafef3c7cd3ac0c5c06ffa39e82959d9aa33930)
This commit is contained in:
Stephen Paul Weber 2024-11-18 10:24:35 -05:00 committed by Arne
parent 42c22a4c05
commit 0cc757bd54

View file

@ -1722,6 +1722,9 @@ public class XmppConnectionService extends Service {
|| ongoingVideoTranscoding
|| ongoing != null
|| (Compatibility.keepForegroundService(this) && hasEnabledAccounts())) {
if (Compatibility.runsTwentySix()) {
mNotificationService.initializeChannels();
}
final Notification notification;
if (ongoing != null && !diallerIntegrationActive.get()) {
notification = this.mNotificationService.getOngoingCallNotification(ongoing);