universal7885: FMRadio: Fix background svc not receiving start

Somehow this intent filter got removed, breaking init function
This commit is contained in:
roynatech2544 2022-11-03 18:06:16 +09:00
commit 2d2a1ed08f
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,8 @@
<service android:name=".FMRadioService" android:exported="false">
<intent-filter>
<action android:name="com.eurekateam.fmradio.PLAY_FM"/>
<action android:name="com.eurekateam.fmradio.NEXT"/>
<action android:name="com.eurekateam.fmradio.NEXT"/>
<action android:name="com.eurekateam.fmradio.START"/>
<action android:name="com.eurekateam.fmradio.BEFORE"/>
<action android:name="com.eurekateam.fmradio.QUIT"/>
<action android:name="com.eurekateam.fmradio.OUTPUT"/>

View file

@ -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) ---")