Merge pull request #1742 from jotomo/1740
Split up receivers for local BG broadcasts and SMS.
This commit is contained in:
commit
d70f2b6f75
|
@ -73,15 +73,12 @@
|
|||
<activity android:name=".plugins.pump.danaRS.activities.PairingHelperActivity" />
|
||||
<activity android:name=".activities.HistoryBrowseActivity" />
|
||||
|
||||
<!-- Receive new BG readings from other local apps -->
|
||||
<receiver
|
||||
android:name=".receivers.DataReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:permission="android.permission.BROADCAST_SMS">
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
|
||||
<!-- Receive new SMS messages -->
|
||||
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
|
||||
<!-- Receiver from xDrip -->
|
||||
<action android:name="com.eveningoutpost.dexdrip.BgEstimate"/>
|
||||
<!-- Receiver from 640g uploader -->
|
||||
|
@ -98,6 +95,18 @@
|
|||
<action android:name="com.fanqies.tomatofn.BgEstimate"/>
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!-- Receive new SMS messages -->
|
||||
<receiver
|
||||
android:name=".receivers.SmsReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:permission="android.permission.BROADCAST_SMS">
|
||||
<intent-filter>
|
||||
<action android:name="android.provider.Telephony.SMS_RECEIVED"/>
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!-- Receiver keepalive, scheduled every 30 min -->
|
||||
<receiver android:name=".receivers.KeepAliveReceiver" />
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package info.nightscout.androidaps.receivers;
|
||||
|
||||
/**
|
||||
* Forward received SMS intents. This is a separate class, because unlike local broadcasts handled by DataReceiver,
|
||||
* receiving SMS requires a special permission in the manifest, which necessitates a separate receiver.
|
||||
*/
|
||||
public class SmsReceiver extends DataReceiver {}
|
Loading…
Reference in a new issue