Skip to content

Commit

Permalink
Fix OnBootReceiver not receiving any BOOT_COMPLETED intent.
Browse files Browse the repository at this point in the history
+ Broken since: a095e89.
+ The wrong action filter prevented the UpdateService from ever being started :(
  • Loading branch information
johnjohndoe committed May 7, 2024
1 parent bc55a41 commit 5a9d854
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.content.Context
import android.content.Intent
import info.metadude.android.eventfahrplan.commons.logging.Logging
import info.metadude.android.eventfahrplan.commons.temporal.Moment
import nerd.tuxmobil.fahrplan.congress.alarms.AlarmReceiver
import nerd.tuxmobil.fahrplan.congress.alarms.AlarmServices
import nerd.tuxmobil.fahrplan.congress.autoupdate.UpdateService
import nerd.tuxmobil.fahrplan.congress.dataconverters.toSchedulableAlarm
Expand All @@ -22,7 +21,7 @@ class OnBootReceiver : BroadcastReceiver() {

override fun onReceive(context: Context, intent: Intent) {
val action = intent.action ?: return
if (action != AlarmReceiver.ALARM_UPDATE) {
if (action != Intent.ACTION_BOOT_COMPLETED) {
return
}

Expand Down

0 comments on commit 5a9d854

Please sign in to comment.