summaryrefslogtreecommitdiff
path: root/platform/android/src/com/artifex/mupdfdemo/ReaderView.java
AgeCommit message (Collapse)Author
2015-09-29Android: Changes to improve handling out-of-memory errors.fredrossperry
Probably related to bug 695507.
2015-04-03Bug 693481: Android: Allow panning while zoomingRobin Watts
Adopt (slightly modified) version of Kenny Lam's patch to allow panning while zooming. This more closely matches how a web view behaves.
2015-04-03Bug 694388: Android: Don't call requestLayout more than we need to.Robin Watts
Thanks to Goncalo Ferreira for spotting this.
2015-01-22Fix android scrolling bug.Robin Watts
Spotted by "Pogon". The code to choose between horizontal and vertical scrolling was broken due to a missing ! in a condition. Cut and Paste error.
2014-09-08Add option for vertical scrolling support in Android App.Robin Watts
A potential customer (currently a free user) contacted us asking that MuPDF be extended to support vertical scrolling rather than horizontal scrolling. He supplied a partially working patch. We reviewed his patch, and found the bit he'd missed, which he added and it now works for his purposes. We also spotted some places where his patch is incorrect in general though (and will go wrong for cases where PDF files have varying page sizes). This is a commit of a correct version. ReaderView gains a HORIZONTAL_SCROLLING boolean that is set to true currently to maintain the normal behaviour. Change it to false and we will scroll vertically instead. Possibly we could add a button to allow this to be a runtime option, but that's a future enhancement.
2014-07-08Fix #693228 - Android has counter intuitive finger dragging behaviourMatt Holgate
Patch from Michaƫl Cadilhac. Continue to pass events to panning GestureDetector when zooming (but do not act on the reported gesture). Previously we just stopped sending events to the GestureDetector until the start of the next gesture.
2014-07-01Bug #694104 - Allow using MuPDFReaderView from GUI layout tool.Matt Holgate
The GUI layout tool instantiates custom controls classes to display a preview in the IDE. It relies on the 2-argument constructor being implemented. Use a different means to get the window manager that works for non-activity contexts, and avoid creating gesture recognizers in this situation. Based on a patch supplied by Masaki Muranaka
2014-06-18Fix bug #695132: MuPDF Library throwing sporadic exception on AndroidMatt Holgate
Android sometimes calls the 'getSelectedView()' method of an AdapterView. This can be made to happen more predicatably by enabling the Talkback accessibility feature. Remove the UnsupportedOperationException and just return null, as we the ReaderView does not have the concept of a selected page.
2014-01-06Android: for scroll steps, use postOnAnimation when availablePaul Gardiner
Using postOnAnimation in place of post noticably improves scroll smoothness. Also avoid posting multiple runnables unnecessarily.
2013-12-18Android: a few improvements to the view handlingPaul Gardiner
While scrolling, avoid some overheads to do with image scaling that need updating only on a zoom-level change Remove a pointless invalidate call. Avoid calls to removeViewInLayout and removeAllViewsInLayout that were being made in functions not called from onLayout
2013-09-25Android: while adjusting reflow zoom, refresh only the visible pagePaul Gardiner
Also fix a race condition where an attempt to set the zoom might precede the loading of html into the WebView
2013-08-27Android: add signature checkingPaul Gardiner
2013-06-20Rearrange source files.Tor Andersson