- 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 {
Gson gson = OmnipodUtil.getGsonInstance();
String storedPodState = SP.getString(OmnipodConst.Prefs.PodState, null);
LOG.info("PodSessionState-SP: loaded from SharedPreferences: " + storedPodState);
podState = gson.fromJson(storedPodState, PodSessionState.class);
OmnipodUtil.setPodSessionState(podState);
} catch (Exception ex) {