- added logs for Pod state loading and saving so that we can see what is happening with bug #102
This commit is contained in:
parent
4c14e2e364
commit
8c803f7e0c
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue