summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/java/android/webkit/ZoomManager.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/webkit/ZoomManager.java b/core/java/android/webkit/ZoomManager.java
index 1da59e400da8..88301191c654 100644
--- a/core/java/android/webkit/ZoomManager.java
+++ b/core/java/android/webkit/ZoomManager.java
@@ -429,13 +429,12 @@ class ZoomManager {
scale = getReadingLevelScale();
}
- if (mHardwareAccelerated) {
- mInHWAcceleratedZoom = true;
- }
-
setZoomScale(scale, reflowText);
if (oldScale != mActualScale) {
+ if (mHardwareAccelerated) {
+ mInHWAcceleratedZoom = true;
+ }
// use mZoomPickerScale to see zoom preview first
mZoomStart = SystemClock.uptimeMillis();
mInvInitialZoomScale = 1.0f / oldScale;
@@ -467,6 +466,8 @@ class ZoomManager {
if (mZoomScale == 0) {
Log.w(LOGTAG, "A WebView is attempting to perform a fixed length "
+ "zoom animation when no zoom is in progress");
+ // Now that we've logged about it, go ahead and just recover
+ mInHWAcceleratedZoom = false;
return;
}