diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-04 16:56:40 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-04 16:56:40 +0000 |
commit | fc9281079e0b15a219337fe6e1ad8f8d1389bad1 (patch) | |
tree | 7cd966adc6665f4e96ea4a43e25cb959ff6d91f9 /android/src | |
parent | 4fcd5c1ff4c3a84921fa97715a68f870a2ab857b (diff) | |
download | mupdf-fc9281079e0b15a219337fe6e1ad8f8d1389bad1.tar.xz |
Android: reset zoom on mode change
We should probably record the last scale for each mode and
reenstate it when returning to that mode, but there are
a few difficulties to that that need to be addressed
Diffstat (limited to 'android/src')
-rw-r--r-- | android/src/com/artifex/mupdfdemo/ReaderView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdfdemo/ReaderView.java b/android/src/com/artifex/mupdfdemo/ReaderView.java index 11f33bb4..540ad381 100644 --- a/android/src/com/artifex/mupdfdemo/ReaderView.java +++ b/android/src/com/artifex/mupdfdemo/ReaderView.java @@ -292,6 +292,7 @@ public class ReaderView extends AdapterView<Adapter> public void refresh(boolean reflow) { mReflow = reflow; + mScale = 1.0f; mXScroll = mYScroll = 0; int numChildren = mChildViews.size(); |