- added logs for Pod state loading and saving so that we can see what is happening with bug #102

This commit is contained in:
Andy Rozman 2020-03-14 18:04:04 +00:00
parent 4c14e2e364
commit 8c803f7e0c

View file

@ -120,6 +120,7 @@ public class RileyLinkOmnipodService extends RileyLinkService {
try { try {
Gson gson = OmnipodUtil.getGsonInstance(); Gson gson = OmnipodUtil.getGsonInstance();
String storedPodState = SP.getString(OmnipodConst.Prefs.PodState, null); String storedPodState = SP.getString(OmnipodConst.Prefs.PodState, null);
LOG.info("PodSessionState-SP: loaded from SharedPreferences: " + storedPodState);
podState = gson.fromJson(storedPodState, PodSessionState.class); podState = gson.fromJson(storedPodState, PodSessionState.class);
OmnipodUtil.setPodSessionState(podState); OmnipodUtil.setPodSessionState(podState);
} catch (Exception ex) { } catch (Exception ex) {