Update IOB on tab selection
This commit is contained in:
parent
f7779bd9f1
commit
d6608bbcbc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue