Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty getAllHighlights #104

Open
vijildhas opened this issue Aug 22, 2017 · 0 comments
Open

Empty getAllHighlights #104

vijildhas opened this issue Aug 22, 2017 · 0 comments

Comments

@vijildhas
Copy link

I have used FolioReader-Android, working good Lolipop and above, but when I use Kitkat the Highlights list is empty.

public static ArrayList getAllHighlights(String bookId) {
ArrayList highlights = new ArrayList<>();
Cursor highlightCursor = DbAdapter.getAllByKey(HighLightTable.TABLE_NAME, HighLightTable.ALL_COLUMNS, HighLightTable.COL_BOOK_ID, bookId);
while (highlightCursor.moveToNext()) {
highlights.add(new Highlight(highlightCursor.getString(1),
highlightCursor.getString(2),
highlightCursor.getString(3),
highlightCursor.getString(4),
getDateTime(highlightCursor.getString(5)),
highlightCursor.getString(6),
highlightCursor.getInt(7),
highlightCursor.getString(8),
highlightCursor.getInt(9),
highlightCursor.getInt(10),
highlightCursor.getString(11)));
}

    Log.d("highlights", "highlights ? " + highlights); // this return empty([]) array.
    return highlights;
}

this method was written inside com.folioreader.model.sqlite.HighLightTable class.

mahavir155 pushed a commit that referenced this issue Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant