use of com.orgzly.android.query.user.InternalQueryBuilder in project orgzly-android by orgzly.
the class NotesClient method getCursorForBook.
public static Cursor getCursorForBook(Context context, String bookName) throws SQLException {
/* Create a query with a book name condition. */
InternalQueryBuilder builder = new InternalQueryBuilder();
String query = builder.build(new Query(new Condition.InBook(bookName)));
return context.getContentResolver().query(ProviderContract.Notes.ContentUri.notesSearchQueried(query), null, null, null, // For book view, force ordering by position only
DbNoteView.LFT);
}
Aggregations