コード例 #1
0
 @Override
 public void onViewCreated(View view, Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   initList();
   setHasOptionsMenu(true);
   ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(mCategory.getName());
 }
コード例 #2
0
  @Override
  public void onResume() {
    super.onResume();

    mAdapter.startLocationUpdate();
    mAdapter.notifyDataSetChanged();
  }
コード例 #3
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    mCategoryIndex = getArguments().getInt(ChooseBookmarkCategoryFragment.CATEGORY_ID, -1);
    mCategory = BookmarkManager.INSTANCE.getCategory(mCategoryIndex);
  }
コード例 #4
0
  @Override
  public void onPause() {
    super.onPause();

    mAdapter.stopLocationUpdate();
  }