Merge remote-tracking branch 'origin/dev' into combo-scripter-v2
* origin/dev: Remove missed reference to pref in NSProfilePlugin. Remove 'sync to profile' pref. # Conflicts: # app/src/main/java/info/nightscout/androidaps/plugins/ProfileNS/NSProfilePlugin.java
This commit is contained in:
commit
a3db2136e1
2 changed files with 10 additions and 12 deletions
|
@ -120,7 +120,6 @@ public class NSProfilePlugin implements PluginBase, ProfileInterface {
|
|||
profile = new ProfileStore(newProfile.getData());
|
||||
storeNSProfile();
|
||||
MainApp.bus().post(new EventNSProfileUpdateGUI());
|
||||
if (SP.getBoolean(R.string.key_sync_profile_to_pump, false)) {
|
||||
ConfigBuilderPlugin.getCommandQueue().setProfile(MainApp.getConfigBuilder().getProfile(), new Callback() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -133,7 +132,6 @@ public class NSProfilePlugin implements PluginBase, ProfileInterface {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private static void storeNSProfile() {
|
||||
SP.putString("profile", profile.getData().toString());
|
||||
|
|
|
@ -59,7 +59,7 @@ public class KeepAliveReceiver extends BroadcastReceiver {
|
|||
|
||||
LocalAlertUtils.checkPumpUnreachableAlarm(lastConnection, isStatusOutdated);
|
||||
|
||||
if (SP.getBoolean("syncprofiletopump", false) && !pump.isThisProfileSet(profile)) {
|
||||
if (!pump.isThisProfileSet(profile)) {
|
||||
MainApp.getConfigBuilder().getCommandQueue().setProfile(profile, null);
|
||||
} else if (isStatusOutdated && !pump.isBusy()) {
|
||||
MainApp.getConfigBuilder().getCommandQueue().readStatus("KeepAlive. Status outdated.", null);
|
||||
|
|
Loading…
Reference in a new issue