|
|
|
|
7
|
import android.util.Log
|
7
|
import android.util.Log
|
8
|
import androidx.preference.PreferenceManager
|
8
|
import androidx.preference.PreferenceManager
|
9
|
import fr.forum_thalie.tsumugi.alarm.RadioAlarm
|
9
|
import fr.forum_thalie.tsumugi.alarm.RadioAlarm
|
|
|
10
|
+import fr.forum_thalie.tsumugi.planning.Planning
|
10
|
import fr.forum_thalie.tsumugi.playerstore.PlayerStore
|
11
|
import fr.forum_thalie.tsumugi.playerstore.PlayerStore
|
11
|
|
12
|
|
12
|
class BootBroadcastReceiver : BroadcastReceiver(){
|
13
|
class BootBroadcastReceiver : BroadcastReceiver(){
|
|
|
|
|
24
|
{
|
25
|
{
|
25
|
|
26
|
|
26
|
RadioAlarm.instance.setNextAlarm(context) // schedule next alarm
|
27
|
RadioAlarm.instance.setNextAlarm(context) // schedule next alarm
|
|
|
28
|
+ Planning.instance.parseUrl(context = context)
|
27
|
if (!PlayerStore.instance.isInitialized)
|
29
|
if (!PlayerStore.instance.isInitialized)
|
28
|
PlayerStore.instance.initApi()
|
30
|
PlayerStore.instance.initApi()
|
29
|
if (PlayerStore.instance.streamerName.value.isNullOrBlank())
|
31
|
if (PlayerStore.instance.streamerName.value.isNullOrBlank())
|