Remove duplicated code.

This commit is contained in:
Johannes Mockenhaupt 2017-10-19 23:23:20 +02:00
parent 4e978656f5
commit c04d746cfc
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -1165,9 +1165,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
flag &= ~Paint.STRIKE_THRU_TEXT_FLAG;
bgView.setPaintFlags(flag);
Long agoMsec = System.currentTimeMillis() - lastBG.date;
int agoMin = (int) (agoMsec / 60d / 1000d);
timeAgoView.setText(String.format(MainApp.sResources.getString(R.string.minago), agoMin));
timeAgoView.setText(DateUtil.minAgo(lastBG.date));
// iob
MainApp.getConfigBuilder().updateTotalIOBTreatments();