Overview: don't block the UI waiting for IobCob thread.

This commit is contained in:
Johannes Mockenhaupt 2018-10-14 14:49:04 +02:00
parent 9309729ca1
commit c326e7a483
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

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