Fix crash in OmnipodPumpPlugin.onStart()

This commit is contained in:
Bart Sopers 2020-08-22 01:58:14 +02:00
parent c1e8a2026e
commit e9d53eea52

View file

@ -227,11 +227,8 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface,
// TODO either find a more elegant solution, or at least make sure this is the right place to do this // TODO either find a more elegant solution, or at least make sure this is the right place to do this
podStateManager.loadPodState(); podStateManager.loadPodState();
initPumpStatusData();
Intent intent = new Intent(context, RileyLinkOmnipodService.class); Intent intent = new Intent(context, RileyLinkOmnipodService.class);
context.bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); context.bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
serviceRunning = true; serviceRunning = true;
disposables.add(rxBus disposables.add(rxBus