summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-07-06 14:40:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-06 14:40:53 -0700
commita0c26920b69a290869c44f97b1916506ee8d0a91 (patch)
treea289ea469042ef944d978dc2006b592fbe8099bf
parentaadfed5308816c3e00c0d459266912ebd92a8fc9 (diff)
parent1bf0456b290c9c1428d192a1134ded28b4d6c777 (diff)
downloadframeworks_base-a0c26920b69a290869c44f97b1916506ee8d0a91.zip
frameworks_base-a0c26920b69a290869c44f97b1916506ee8d0a91.tar.gz
frameworks_base-a0c26920b69a290869c44f97b1916506ee8d0a91.tar.bz2
Merge "Treat restored defaultScale as overview."
-rw-r--r--core/java/android/webkit/ZoomManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/webkit/ZoomManager.java b/core/java/android/webkit/ZoomManager.java
index 7d43e94..252fc8f 100644
--- a/core/java/android/webkit/ZoomManager.java
+++ b/core/java/android/webkit/ZoomManager.java
@@ -1111,6 +1111,12 @@ class ZoomManager {
mTextWrapScale = Math.max(mTextWrapScale, overviewScale);
}
reflowText = exceedsMinScaleIncrement(mTextWrapScale, scale);
+ } else {
+ // In case of restored scale, treat defaultScale as overview since
+ // it usually means the previous scale is not saved.
+ if (scale == mDefaultScale && settings.getLoadWithOverviewMode()) {
+ scale = overviewScale;
+ }
}
mInitialZoomOverview = settings.getLoadWithOverviewMode() &&
!exceedsMinScaleIncrement(scale, overviewScale);