Don't emit sound for pulse log dialog

This commit is contained in:
Bart Sopers 2019-12-30 12:03:57 -05:00
parent b463f915e1
commit 168dffc7fc
2 changed files with 2 additions and 2 deletions

View file

@ -392,7 +392,7 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
clipboard.setPrimaryClip(clip); clipboard.setPrimaryClip(clip);
Intent i = new Intent(MainApp.instance(), ErrorHelperActivity.class); 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("status", "Pulse Log (copied to clipboard):\n" + result.toString());
i.putExtra("title", MainApp.gs(R.string.combo_warning)); i.putExtra("title", MainApp.gs(R.string.combo_warning));
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

View file

@ -627,7 +627,7 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
private void showErrorDialog(String message, Integer sound) { private void showErrorDialog(String message, Integer sound) {
Intent intent = new Intent(MainApp.instance(), ErrorHelperActivity.class); 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("status", message);
intent.putExtra("title", MainApp.gs(R.string.treatmentdeliveryerror)); intent.putExtra("title", MainApp.gs(R.string.treatmentdeliveryerror));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);