Search in sources :

Example 1 with BookUpdatePreface

use of com.orgzly.android.usecase.BookUpdatePreface in project orgzly-android by orgzly.

the class MainActivity method onBookPrefaceEditSaveRequest.

// private void animateNotesAfterEdit(Set<Long> noteIds) {
// Fragment f;
// 
// f = getSupportFragmentManager().findFragmentByTag(BookFragment.FRAGMENT_TAG);
// if (f != null && f.isVisible()) {
// BookFragment heads = (BookFragment) f;
// heads.animateNotes(noteIds, HeadAnimator.ANIMATE_FOR_HEAD_MODIFIED);
// }
// 
// f = getSupportFragmentManager().findFragmentByTag(QueryFragment.FRAGMENT_TAG);
// if (f != null && f.isVisible()) {
// QueryFragment heads = (QueryFragment) f;
// heads.animateNotes(noteIds, HeadAnimator.ANIMATE_FOR_HEAD_MODIFIED);
// }
// }
@Override
public /* EditorFragment */
void onBookPrefaceEditSaveRequest(@NotNull Book book, @NotNull String preface) {
    popBackStackAndCloseKeyboard();
    mSyncFragment.run(new BookUpdatePreface(book.getId(), preface));
}
Also used : BookUpdatePreface(com.orgzly.android.usecase.BookUpdatePreface)

Aggregations

BookUpdatePreface (com.orgzly.android.usecase.BookUpdatePreface)1