Fix missing connectNewPump in Insight driver
This commit is contained in:
parent
3b989923a7
commit
1fd4799087
|
@ -30,6 +30,7 @@ import javax.inject.Inject;
|
||||||
|
|
||||||
import info.nightscout.androidaps.activities.NoSplashAppCompatActivity;
|
import info.nightscout.androidaps.activities.NoSplashAppCompatActivity;
|
||||||
import info.nightscout.androidaps.insight.R;
|
import info.nightscout.androidaps.insight.R;
|
||||||
|
import info.nightscout.androidaps.interfaces.PumpSync;
|
||||||
import info.nightscout.androidaps.plugins.pump.common.ble.BlePreCheck;
|
import info.nightscout.androidaps.plugins.pump.common.ble.BlePreCheck;
|
||||||
import info.nightscout.androidaps.plugins.pump.insight.connection_service.InsightConnectionService;
|
import info.nightscout.androidaps.plugins.pump.insight.connection_service.InsightConnectionService;
|
||||||
import info.nightscout.androidaps.plugins.pump.insight.descriptors.InsightState;
|
import info.nightscout.androidaps.plugins.pump.insight.descriptors.InsightState;
|
||||||
|
@ -39,6 +40,7 @@ public class InsightPairingActivity extends NoSplashAppCompatActivity implements
|
||||||
|
|
||||||
@Inject BlePreCheck blePreCheck;
|
@Inject BlePreCheck blePreCheck;
|
||||||
@Inject Context context;
|
@Inject Context context;
|
||||||
|
@Inject PumpSync pumpSync;
|
||||||
|
|
||||||
private boolean scanning;
|
private boolean scanning;
|
||||||
private LinearLayout deviceSearchSection;
|
private LinearLayout deviceSearchSection;
|
||||||
|
@ -64,6 +66,7 @@ public class InsightPairingActivity extends NoSplashAppCompatActivity implements
|
||||||
service.registerStateCallback(InsightPairingActivity.this);
|
service.registerStateCallback(InsightPairingActivity.this);
|
||||||
service.registerExceptionCallback(InsightPairingActivity.this);
|
service.registerExceptionCallback(InsightPairingActivity.this);
|
||||||
onStateChanged(service.getState());
|
onStateChanged(service.getState());
|
||||||
|
pumpSync.connectNewPump();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue