EhViewer icon indicating copy to clipboard operation
EhViewer copied to clipboard

Feature Request: Show read progress on download/gallery scene

Open exzhawk opened this issue 6 years ago • 2 comments

It would be nice if read progress can be shown on download/gallery scene like Perfect Viewer.

On gallery page of Perfect Viewer, there is a circle with check mark on each read book cover to indicate read progress.Ref: the second and third screenshot of Perfect Viewer Play store page https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer

A simple "current page / total page" just like the download progress is enough.

I've tried to implement this feature myself, but there are still bugs. (Read progress not syncing when reading, failed to get total page sometime). https://github.com/exzhawk/EhViewer/commit/9e671524de0c790dd692422e49ca3af4edd1c9fa Any help will be appreciated!

exzhawk avatar Apr 16 '19 15:04 exzhawk

GalleryProvider is heavy. Be careful with it. The reading progress is saved in the ".ehviewer" file of each downloaded gallery. The file can be read as SpiderInfo.

Since most galleries are short, I don't think it's necessary to show the reading progress to users. Marking the read galleries is enough.

seven332 avatar Apr 17 '19 08:04 seven332

Yeah... changing GalleryProvider to SpiderInfo, just copied code from https://github.com/exzhawk/EhViewer/blob/a34856521a/app/src/main/java/com/hippo/ehviewer/spider/SpiderQueen.java#L677 I still insist on showing detailed reading process. And red/green colors are also used to indicate progress to make things easier. https://github.com/exzhawk/EhViewer/commit/a34856521a35bd917fe141e1fe9c291cc22a3d32 Please point out mistakes if there is any, thank you!

exzhawk avatar Apr 19 '19 16:04 exzhawk