With the newest beta, I cannot get the current BG on the widget. Some things I found out:
DownloadHelper.java:946: This is the only place where "calibrationStatus" is set; otherwise it is initialized with -1. My "result" is "{"date":1529857712747,"sgv":96,"direction":"Flat","uploaderBattery":58}" does not contain "calibrationStatus".
Resuming until DownloadHelper.java:945, my "sgv" is "96", so "calib" gets set to Constants.getWidgetCalAppend(calibrationStatus ==-1); which returns "DB?".
Line 951: As "calib" now contains "DB", "sgv" gets assigned to "calib" and therefore also contains "DB?".
I tried to find out where the "calibrationStatus" should come from but I did not find any occurrences of that value in the database. My final workaround was to replace all occurrences of "if (calib.indexOf("NC") >= 0 || calib.indexOf("DB") >= 0)" with if (false && (calib.indexOf("NC") >= 0 || calib.indexOf("DB") >= 0)) but I am a little bit unhappy with it because I think there was some intention behind those steps.
With the newest beta, I cannot get the current BG on the widget. Some things I found out:
I tried to find out where the "calibrationStatus" should come from but I did not find any occurrences of that value in the database. My final workaround was to replace all occurrences of "if (calib.indexOf("NC") >= 0 || calib.indexOf("DB") >= 0)" with if (false && (calib.indexOf("NC") >= 0 || calib.indexOf("DB") >= 0)) but I am a little bit unhappy with it because I think there was some intention behind those steps.