mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: FMRadio: Fix background svc not receiving start
Somehow this intent filter got removed, breaking init function
This commit is contained in:
parent
6c962d35a8
commit
2d2a1ed08f
2 changed files with 3 additions and 2 deletions
|
|
@ -10,7 +10,8 @@
|
||||||
<service android:name=".FMRadioService" android:exported="false">
|
<service android:name=".FMRadioService" android:exported="false">
|
||||||
<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"/>
|
||||||
|
|
|
||||||
|
|
@ -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) ---")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue