Merge pull request #1539 from jotomo/overview-ui-blocking

Overview: don't block the UI waiting for IobCob thread.
This commit is contained in:
Milos Kozak 2018-11-05 16:39:05 +01:00 committed by GitHub
commit 0abdd1488f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1364,7 +1364,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
// Sensitivity
if (sensitivityView != null) {
AutosensData autosensData = IobCobCalculatorPlugin.getPlugin().getLastAutosensDataSynchronized("Overview");
AutosensData autosensData = IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Overview");
if (autosensData != null)
sensitivityView.setText(String.format("%.0f%%", autosensData.autosensResult.ratio * 100));
else