Skip to content

Commit

Permalink
MainService: tell system to redeliver Intent on restart
Browse files Browse the repository at this point in the history
Fixes crash where Intent was null.
  • Loading branch information
bk138 committed Feb 15, 2021
1 parent b485505 commit 44765cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public int onStartCommand(Intent intent, int flags, int startId)
stopSelf();
}

return START_STICKY;
return START_REDELIVER_INTENT;
}


Expand Down

0 comments on commit 44765cf

Please sign in to comment.