Ejemplo n.º 1
0
 public void onDeleteAction() {
   if (UI_DEBUG_PRINTS) Log.d(TAG, "onDeleteAction");
   editorFragment.setSelfAction(); // Don't try to reload the deleted
   // note
   FragmentLayout.deleteNote(this, editorFragment.getCurrentNoteId());
   goUp();
 }
Ejemplo n.º 2
0
 public void onDeleteAction() {
   // both list and editor should be notified
   NotesListFragment list =
       (NotesListFragment) getFragmentManager().findFragmentById(R.id.noteslistfragment);
   NotesEditorFragment editor =
       (NotesEditorFragment) getFragmentManager().findFragmentById(R.id.editor_container);
   if (editor != null) editor.setSelfAction();
   // delete note
   if (list != null) list.onDelete();
 }
Ejemplo n.º 3
0
 @Override
 public void onMultiDelete(Collection<Long> ids, long curId) {
   if (ids.contains(curId)) {
     if (UI_DEBUG_PRINTS)
       Log.d("FragmentLayout", "id was contained in multidelete, setting no save first");
     NotesEditorFragment editor =
         (NotesEditorFragment) getFragmentManager().findFragmentById(R.id.editor_container);
     if (editor != null) {
       editor.setSelfAction();
     }
   }
   if (UI_DEBUG_PRINTS) Log.d("FragmentLayout", "deleting notes...");
   deleteNotes(this, ids);
 }