Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c3b1376 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Fix wrong thread annotation

parent f51b5481
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ public abstract class NotesDatabase extends RoomDatabase {
        return getNoteDao().getNoteById(getNoteDao().addNote(entity));
    }

    @AnyThread
    @MainThread
    public LiveData<Note> moveNoteToAnotherAccount(Account account, Note note) {
        return switchMap(getNoteDao().getContent$(note.getId()), (content) -> {
            final Note fullNote = new Note(null, note.getModified(), note.getTitle(), content, note.getCategory(), note.getFavorite(), null);