Skip to content

Commit

Permalink
fix(Android): Revert #124 (#127)
Browse files Browse the repository at this point in the history
Revert #124 as it is causing issue #126
  • Loading branch information
Rapsssito committed Apr 25, 2022
1 parent 318375c commit ba3bf29
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
final Notification notification = buildNotification(this, bgOptions);

startForeground(SERVICE_NOTIFICATION_ID, notification);

HeadlessJsTaskConfig taskConfig = this.getTaskConfig(intent);

if (taskConfig != null) {
this.stopForeground(false);
this.startTask(taskConfig);
}

return START_NOT_STICKY;
return super.onStartCommand(intent, flags, startId);
}

private void createNotificationChannel(@NonNull final String taskTitle, @NonNull final String taskDesc) {
Expand Down

0 comments on commit ba3bf29

Please sign in to comment.