From 59d3c79ed54a638d751e19b86515401edcebb67a Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 13 Apr 2019 14:13:37 +0200 Subject: [PATCH] Split up receivers for local BG broadcasts and SMS. Receiving local BG values probably fails silently when SMS permission is not granted (due to SMS plugin not being used). --- app/src/main/AndroidManifest.xml | 39 ++++++++++++------- .../androidaps/receivers/SmsReceiver.java | 3 ++ 2 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 app/src/main/java/info/nightscout/androidaps/receivers/SmsReceiver.java diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 179fc23373..e7ec8493be 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -73,31 +73,40 @@ + + android:name=".receivers.DataReceiver" + android:enabled="true" + android:exported="true"> - - - - + - + - + - - - + + + - + - + + + + + + + + + diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/SmsReceiver.java b/app/src/main/java/info/nightscout/androidaps/receivers/SmsReceiver.java new file mode 100644 index 0000000000..5a0cb6a803 --- /dev/null +++ b/app/src/main/java/info/nightscout/androidaps/receivers/SmsReceiver.java @@ -0,0 +1,3 @@ +package info.nightscout.androidaps.receivers; + +public class SmsReceiver extends DataReceiver {}