Merge remote-tracking branch 'origin/dev' into csv2-staging

* origin/dev:
  don't show single connection timeouts on the watch
This commit is contained in:
Johannes Mockenhaupt 2017-12-25 20:52:16 +01:00
commit a8e0a4dfe8
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 3 additions and 1 deletions

View file

@ -215,6 +215,8 @@ public class WearPlugin implements PluginBase {
@Subscribe
public void onStatusEvent(final EventDismissBolusprogressIfRunning ev) {
if(ev.result == null) return;
String status;
if(ev.result.success){
status = MainApp.sResources.getString(R.string.success);

View file

@ -59,7 +59,7 @@ public class QueueThread extends Thread {
}
if (!pump.isConnected() && secondsElapsed > Constants.PUMP_MAX_CONNECTION_TIME_IN_SECONDS) {
MainApp.bus().post(new EventDismissBolusprogressIfRunning(new PumpEnactResult()));
MainApp.bus().post(new EventDismissBolusprogressIfRunning(null));
MainApp.bus().post(new EventPumpStatusChanged(MainApp.sResources.getString(R.string.connectiontimedout)));
log.debug("QUEUE: timed out");
pump.stopConnecting();