From 168dffc7fcbfadeba539192efd4e120d9a84d7a7 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Mon, 30 Dec 2019 12:03:57 -0500 Subject: [PATCH] Don't emit sound for pulse log dialog --- .../androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java | 2 +- .../plugins/pump/omnipod/driver/comm/AapsOmnipodManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java index 5b8f8667df..9129050533 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java @@ -392,7 +392,7 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump clipboard.setPrimaryClip(clip); Intent i = new Intent(MainApp.instance(), ErrorHelperActivity.class); - i.putExtra("soundid", R.raw.boluserror); + i.putExtra("soundid", 0); // No sound i.putExtra("status", "Pulse Log (copied to clipboard):\n" + result.toString()); i.putExtra("title", MainApp.gs(R.string.combo_warning)); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/comm/AapsOmnipodManager.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/comm/AapsOmnipodManager.java index ca67490122..000618bd4f 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/comm/AapsOmnipodManager.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/comm/AapsOmnipodManager.java @@ -627,7 +627,7 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface private void showErrorDialog(String message, Integer sound) { Intent intent = new Intent(MainApp.instance(), ErrorHelperActivity.class); - intent.putExtra("soundid", sound); + intent.putExtra("soundid", sound == null ? 0 : sound); intent.putExtra("status", message); intent.putExtra("title", MainApp.gs(R.string.treatmentdeliveryerror)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);