Save new profile when updating it

This commit is contained in:
TebbeUbben 2018-03-13 20:15:58 +01:00
parent ffb7b068a8
commit 11295b1e96

View file

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