mirror of https://github.com/koreader/koreader
PocketBook: Simplify openLink impl - use inkview.OpenBook instead
Somewhat unintuitively, OpenBook does exactly what we want if we pass the browser binary as the book and the URL as parameters. It does a couple extra things we don't need, like checking if the browser binary is being viewed by the built-in epub reading software, and possibly some more stuff I don't quite understand, but at the end it does almost exactly what OpenTask from the new PocketBook SDK does. Actually, OpenBook2 is closer to OpenTask, as it takes `const char **argv` rather than a single argument, but: we don't need multiple arguments, and the single-argument version might work better on older PocketBook firmwares (like the PB624 which is stuck with InkView 4.4).pull/11787/head
parent
18581965de
commit
916050dea4
Loading…
Reference in New Issue