mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
synchronization with 'native' branch
This commit is contained in:
parent
31566a7d44
commit
d89d4050b6
3 changed files with 6 additions and 2 deletions
|
@ -314,7 +314,7 @@ public class ApiServerImplementation extends ApiInterface.Stub implements Api, A
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getParagraphsNumber() {
|
public int getParagraphsNumber() {
|
||||||
return myReader.Model.BookTextModel.getParagraphsNumber();
|
return myReader.Model.getTextModel().getParagraphsNumber();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getElementsNumber(int paragraphIndex) {
|
public int getElementsNumber(int paragraphIndex) {
|
||||||
|
|
|
@ -72,6 +72,10 @@ public final class BookModel {
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ZLTextModel getTextModel() {
|
||||||
|
return BookTextModel;
|
||||||
|
}
|
||||||
|
|
||||||
public ZLTextModel getFootnoteModel(String id) {
|
public ZLTextModel getFootnoteModel(String id) {
|
||||||
ZLTextModel model = myFootnotes.get(id);
|
ZLTextModel model = myFootnotes.get(id);
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
|
|
|
@ -225,7 +225,7 @@ public final class FBReaderApp extends ZLApplication {
|
||||||
Model = BookModel.createModel(book);
|
Model = BookModel.createModel(book);
|
||||||
if (Model != null) {
|
if (Model != null) {
|
||||||
ZLTextHyphenator.Instance().load(book.getLanguage());
|
ZLTextHyphenator.Instance().load(book.getLanguage());
|
||||||
BookTextView.setModel(Model.BookTextModel);
|
BookTextView.setModel(Model.getTextModel());
|
||||||
BookTextView.gotoPosition(book.getStoredPosition());
|
BookTextView.gotoPosition(book.getStoredPosition());
|
||||||
if (bookmark == null) {
|
if (bookmark == null) {
|
||||||
setView(BookTextView);
|
setView(BookTextView);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue