Beispiel #1
0
  @Override
  public void onActivityCreated(Bundle icicle) {
    super.onActivityCreated(icicle);

    long storeObjectId = getActivity().getIntent().getLongExtra(TOKEN_STORE_ID, 0);
    list = storeObjectDao.fetch(storeObjectId, LIST_PROPERTIES);
    ((OrderedListFragmentHelper<StoreObject>) helper).setList(list);
  }
Beispiel #2
0
 @Override
 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
   super.onCreateOptionsMenu(menu, inflater);
   addMenuItem(
       menu,
       R.string.gtasks_GTA_clear_completed,
       android.R.drawable.ic_input_delete,
       MENU_CLEAR_COMPLETED_ID,
       false);
 }
Beispiel #3
0
 @Override
 protected void addSyncRefreshMenuItem(Menu menu, int themeFlags) {
   if (gtasksPreferenceService.isLoggedIn()) {
     addMenuItem(
         menu,
         R.string.actfm_TVA_menu_refresh,
         ThemeService.getDrawable(R.drawable.icn_menu_refresh, themeFlags),
         MENU_REFRESH_ID,
         true);
   } else {
     super.addSyncRefreshMenuItem(menu, themeFlags);
   }
 }