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

@ -11,6 +11,7 @@
<intent-filter> <intent-filter>
<action android:name="com.eurekateam.fmradio.PLAY_FM"/> <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.BEFORE"/>
<action android:name="com.eurekateam.fmradio.QUIT"/> <action android:name="com.eurekateam.fmradio.QUIT"/>
<action android:name="com.eurekateam.fmradio.OUTPUT"/> <action android:name="com.eurekateam.fmradio.OUTPUT"/>

View file

@ -66,10 +66,10 @@ class FMRadioService : Service() {
mMediaSession = MediaSession(this, "FMRadio") mMediaSession = MediaSession(this, "FMRadio")
setPlaybackState() setPlaybackState()
mMediaSession.isActive = true mMediaSession.isActive = true
}
}
}
mContext = this mContext = this
}
}
}
sendMetaData("FM ${mNativeFMInterface.mDefaultCtl.getValue(GetType.GET_TYPE_FM_FREQ).toFloat() / 1000} Mhz") sendMetaData("FM ${mNativeFMInterface.mDefaultCtl.getValue(GetType.GET_TYPE_FM_FREQ).toFloat() / 1000} Mhz")
startForeground(51, pushNotification()) startForeground(51, pushNotification())
Log.i("--- FMRadio Background (OUT) ---") Log.i("--- FMRadio Background (OUT) ---")