예제 #1
0
 public void saveNote(Note note, String contents) {
   database.child(note.getId()).setValue(note);
   saveToFile(note, password, contents);
   saveToFirebase(note, password, contents);
 }
예제 #2
0
 private boolean noteFileExists(Note note) {
   return new File(filesDir, note.getFileName()).exists();
 }