1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 19:42:17 +02:00

fixed backward scrolling with no animation

This commit is contained in:
Nikolay Pultsin 2012-12-13 01:41:02 +04:00
parent 43e357ee8f
commit b18af23898
2 changed files with 8 additions and 2 deletions

View file

@ -2,6 +2,7 @@
* Added Bulgarian translation (by Ники Арсов)
* Updated Dutch translation (by Frank Fesevur)
* Plural forms in Belarusian and Czech translations
* Fixed issue with rendering during backward page turning with no amimation
===== 1.6.8 (Nov 30, 2012) =====
* Fixed NPE during adding a custom catalog with no search link

View file

@ -1245,6 +1245,7 @@ public abstract class ZLTextView extends ZLTextViewBase {
if (page.PaintState == PaintStateEnum.NOTHING_TO_PAINT || page.PaintState == PaintStateEnum.READY) {
return;
}
final int oldState = page.PaintState;
final HashMap<ZLTextLineInfo,ZLTextLineInfo> cache = myLineInfoCache;
for (ZLTextLineInfo info : page.LineInfos) {
@ -1344,8 +1345,12 @@ public abstract class ZLTextView extends ZLTextViewBase {
myLineInfoCache.clear();
if (page == myCurrentPage) {
myPreviousPage.reset();
myNextPage.reset();
if (oldState != PaintStateEnum.START_IS_KNOWN) {
myPreviousPage.reset();
}
if (oldState != PaintStateEnum.END_IS_KNOWN) {
myNextPage.reset();
}
}
}