profile comming from NS do not trigger EventNewBasalProfile

This commit is contained in:
Milos Kozak 2018-03-18 10:14:27 +01:00
parent 4f43feb12e
commit e6a606296d

View file

@ -368,9 +368,6 @@ public class DataService extends IntentService {
ProfileStore profileStore = new ProfileStore(new JSONObject(profile));
NSProfilePlugin.getPlugin().storeNewProfile(profileStore);
MainApp.bus().post(new EventNSProfileUpdateGUI());
// if there are no profile switches this should lead to profile update
if (MainApp.getConfigBuilder().getProfileSwitchesFromHistory().size() == 0)
MainApp.bus().post(new EventNewBasalProfile());
if (Config.logIncommingData)
log.debug("Received profileStore: " + activeProfile + " " + profile);
} catch (JSONException e) {