Open
Description
Issue / Feature -
FolioReader version - 0.4.0
FolioReader Stock / Modified - 0.4.0
Android SDK - 28
Mobile / Tablet / Emulator Info - onePlus5 - Pixel2(emulator)
Crash / Error - Not crash
Steps to reproduce / Describe in detail -
I'm trying to open the text in a specific place but it does not work.
I opened it in the correct chapter but I can not open it in the correct paragraph
My code:
...
<p>"Yes," said Scrubb. "We know we've got to go north. And we know we've
got to reach the ruins of a giant city."
</p>
<p><span id="99" value="99">At this there was a greater</span> tu–whooing than ever, and noises of birds
shifting their feet and ruffling their feathers, and then all the owls
started speaking at once. They all explained how very sorry they were
that they themselves could:
</p>
<p>"If they want to go that way—into Ettinsmoor—we must take them to one
of the Marsh–wiggles. They're the only people who can help them much."
</p>
...
findViewById(R.id.btn_assest).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Config config;
config = new Config();
config.setDirection(Config.Direction.VERTICAL)
.setFont(Constants.FONT_LATO)
.setFontSize(50)
.setNightMode(false)
.setThemeColor(R.color.app_gray)
.setShowTts(false);
ReadPosition readPosition = new ReadPositionImpl(
"_simple_book",
"id-idp140724861202784",
"ch04.xhtml",
-1,
true,
"99");
folioReader.setReadPosition(readPosition)
.setConfig(config, true)
.openBook("file:///android_asset/TheSilverChair.epub");
}
});
}