Merge pull request #759 from TebbeUbben/dev

Save new profile when updating it to fix "endless loop"
This commit is contained in:
Milos Kozak 2018-03-13 20:31:38 +01:00 committed by GitHub
commit e92e05cfbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,6 +408,7 @@ public class InsightPumpPlugin implements PluginBase, PumpInterface, Constraints
result.success = true; result.success = true;
result.enacted = true; result.enacted = true;
result.comment = "OK"; result.comment = "OK";
this.profileBlocks = profileBlocks;
} else { } else {
Notification notification = new Notification(Notification.FAILED_UDPATE_PROFILE, MainApp.sResources.getString(R.string.failedupdatebasalprofile), Notification.URGENT); Notification notification = new Notification(Notification.FAILED_UDPATE_PROFILE, MainApp.sResources.getString(R.string.failedupdatebasalprofile), Notification.URGENT);
MainApp.bus().post(new EventNewNotification(notification)); MainApp.bus().post(new EventNewNotification(notification));