From fc9281079e0b15a219337fe6e1ad8f8d1389bad1 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Mon, 4 Feb 2013 16:56:40 +0000 Subject: 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 --- android/src/com/artifex/mupdfdemo/ReaderView.java | 1 + 1 file changed, 1 insertion(+) (limited to 'android') 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 public void refresh(boolean reflow) { mReflow = reflow; + mScale = 1.0f; mXScroll = mYScroll = 0; int numChildren = mChildViews.size(); -- cgit v1.2.3