Skip to content

Commit 3bcac51

Browse files
Jenna-66machiav3lli
authored andcommitted
!fixup: Fix: Running ScheduleReceiver on reboot (closes #983)
Fixup for f7eaa9d. Thread was never started. To schedule the alarms, NeoBackup had to be opened at least once. Signed-off-by: Jenna-66 <[email protected]>
1 parent bc5479c commit 3bcac51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/machiav3lli/backup/manager/services/BootReceiver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import org.koin.core.component.KoinComponent
2626
class BootReceiver : BroadcastReceiver(), KoinComponent {
2727
override fun onReceive(context: Context, intent: Intent) {
2828
if (intent.action == Intent.ACTION_BOOT_COMPLETED) {
29-
Thread { scheduleAlarmsOnce(context) }
29+
Thread { scheduleAlarmsOnce(context) }.start()
3030
} else return
3131
}
3232
}

0 commit comments

Comments
 (0)