mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
fixed backward scrolling with no animation
This commit is contained in:
parent
43e357ee8f
commit
b18af23898
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue