@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); initList(); setHasOptionsMenu(true); ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(mCategory.getName()); }
@Override public void onResume() { super.onResume(); mAdapter.startLocationUpdate(); mAdapter.notifyDataSetChanged(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCategoryIndex = getArguments().getInt(ChooseBookmarkCategoryFragment.CATEGORY_ID, -1); mCategory = BookmarkManager.INSTANCE.getCategory(mCategoryIndex); }
@Override public void onPause() { super.onPause(); mAdapter.stopLocationUpdate(); }