Don't emit sound for pulse log dialog
This commit is contained in:
parent
b463f915e1
commit
168dffc7fc
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue