001// SPDX-License-Identifier: GPL-3.0-or-later 002// Copyright © 2026 Aurélien Pierre 003 004package com.aurelienpierre.sioul; 005 006import android.content.BroadcastReceiver; 007import android.content.Context; 008import android.content.Intent; 009 010/** 011 * The doses' alarms given again from the list kept (DoseAlarms): Android 012 * forgets them when it restarts; an update keeps them, given again all the 013 * same; allowed "Alarms & reminders" again, they ring on time again. After a 014 * restart the phone is unlocked once first (Sioul's files cannot be read 015 * before): a dose due meanwhile rings then. 016 */ 017public final class DoseBootReceiver extends BroadcastReceiver 018{ 019 @Override 020 public void onReceive(Context context, Intent intent) 021 { 022 DoseAlarms.restore(context.getApplicationContext(), intent.getAction()); 023 } 024}