@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); mData = new ArrayList<>(); mAdapter = new Adapter(this, getActivity()); }
@Override public void onPause() { getTableController().unsubscribe(this); super.onPause(); }
@Override public void onResume() { super.onResume(); getTableController().subscribe(this); getTableController().get(); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); mListView.setAdapter(mAdapter); setSupportActionBar(mToolbar); }