|
|
@@ -82,8 +82,13 @@ public class JitsiMeetOngoingConferenceService extends Service
|
|
82
|
82
|
final String action = intent.getAction();
|
|
83
|
83
|
if (action.equals(Actions.START)) {
|
|
84
|
84
|
Notification notification = OngoingNotification.buildOngoingConferenceNotification();
|
|
85
|
|
- startForeground(OngoingNotification.NOTIFICATION_ID, notification);
|
|
86
|
|
- Log.i(TAG, "Service started");
|
|
|
85
|
+ if (notification == null) {
|
|
|
86
|
+ stopSelf();
|
|
|
87
|
+ Log.w(TAG, "Couldn't start service, notification is null");
|
|
|
88
|
+ } else {
|
|
|
89
|
+ startForeground(OngoingNotification.NOTIFICATION_ID, notification);
|
|
|
90
|
+ Log.i(TAG, "Service started");
|
|
|
91
|
+ }
|
|
87
|
92
|
} else if (action.equals(Actions.HANGUP)) {
|
|
88
|
93
|
Log.i(TAG, "Hangup requested");
|
|
89
|
94
|
// Abort all ongoing calls
|