This repository was archived by the owner on Nov 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
src/main/java/com/github/barteksc/pdfviewer Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ ## 2.8.1 (2017-11-11)
2+ * Fix bug with rendering ` PDFView ` in Android Studio Layout Editor
3+
14## 2.8.0 (2017-10-31)
25* Add handling of invalid pages, inspired by pull request #433 . Exception on page opening crashed application until now,
36currently ` OnPageErrorListener ` set with ` .onPageError() ` is called. Invalid page color can be set using ` .invalidPageColor() `
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ currently `OnPageErrorListener` set with `Configurator#onPageError()` is called.
1616* Implement ` canScrollVertically() ` and ` canScrollHorizontally() ` methods to work e.g. with ` SwipeRefreshLayout `
1717* Fix bug when ` Configurator#load() ` method was called before view has been measured, which resulted in empty canvas
1818
19+ 2.8.1 fixes bug with rendering ` PDFView ` in Android Studio Layout Editor
20+
1921## Changes in 2.0 API
2022* ` Configurator#defaultPage(int) ` and ` PDFView#jumpTo(int) ` now require page index (i.e. starting from 0)
2123* ` OnPageChangeListener#onPageChanged(int, int) ` is called with page index (i.e. starting from 0)
@@ -29,7 +31,7 @@ currently `OnPageErrorListener` set with `Configurator#onPageError()` is called.
2931
3032Add to _ build.gradle_ :
3133
32- ` compile 'com.github.barteksc:android-pdf-viewer:2.8.0 ' `
34+ ` compile 'com.github.barteksc:android-pdf-viewer:2.8.1 ' `
3335
3436Library is available in jcenter repository, probably it'll be in Maven Central soon.
3537
Original file line number Diff line number Diff line change 1313 siteUrl = ' https://github.com/barteksc/AndroidPdfViewer'
1414 gitUrl = ' https://github.com/barteksc/AndroidPdfViewer.git'
1515
16- libraryVersion = ' 2.8.0 '
16+ libraryVersion = ' 2.8.1 '
1717
1818 developerId = ' barteksc'
1919 developerName = ' Bartosz Schiller'
@@ -32,7 +32,7 @@ android {
3232 minSdkVersion 11
3333 targetSdkVersion 25
3434 versionCode 1
35- versionName " 2.8.0 "
35+ versionName " 2.8.1 "
3636 }
3737
3838}
Original file line number Diff line number Diff line change @@ -598,6 +598,9 @@ public boolean isRecycled() {
598598 @ Override
599599 public void computeScroll () {
600600 super .computeScroll ();
601+ if (isInEditMode ()) {
602+ return ;
603+ }
601604 animationManager .computeFling ();
602605 }
603606
You can’t perform that action at this time.
0 commit comments