Update IOB on tab selection

This commit is contained in:
Milos Kozak 2016-06-05 15:58:08 +02:00
parent f7779bd9f1
commit d6608bbcbc

View file

@ -220,6 +220,14 @@ public class TreatmentsFragment extends Fragment {
recyclerView.getAdapter().notifyDataSetChanged();
}
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (isVisibleToUser)
updateTotalIOB();
}
/**
* This interface must be implemented by activities that contain this
* fragment to allow an interaction in this fragment to be communicated