From 2d2a1ed08fef49c6d6df93632691eeb6533c5477 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Thu, 3 Nov 2022 18:06:16 +0900 Subject: [PATCH] universal7885: FMRadio: Fix background svc not receiving start Somehow this intent filter got removed, breaking init function --- universal7885-common/apps/FMRadio/AndroidManifest.xml | 3 ++- .../apps/FMRadio/src/com/eurekateam/fmradio/FMRadioService.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/universal7885-common/apps/FMRadio/AndroidManifest.xml b/universal7885-common/apps/FMRadio/AndroidManifest.xml index fd242e6..07865df 100644 --- a/universal7885-common/apps/FMRadio/AndroidManifest.xml +++ b/universal7885-common/apps/FMRadio/AndroidManifest.xml @@ -10,7 +10,8 @@ - + + diff --git a/universal7885-common/apps/FMRadio/src/com/eurekateam/fmradio/FMRadioService.kt b/universal7885-common/apps/FMRadio/src/com/eurekateam/fmradio/FMRadioService.kt index 1d41d5a..4e21ac2 100644 --- a/universal7885-common/apps/FMRadio/src/com/eurekateam/fmradio/FMRadioService.kt +++ b/universal7885-common/apps/FMRadio/src/com/eurekateam/fmradio/FMRadioService.kt @@ -66,10 +66,10 @@ class FMRadioService : Service() { mMediaSession = MediaSession(this, "FMRadio") setPlaybackState() mMediaSession.isActive = true + mContext = this } } } - mContext = this sendMetaData("FM ${mNativeFMInterface.mDefaultCtl.getValue(GetType.GET_TYPE_FM_FREQ).toFloat() / 1000} Mhz") startForeground(51, pushNotification()) Log.i("--- FMRadio Background (OUT) ---")