OSDN Git Service

The starting progress for WebView should be 100 as it is
authorGrace Kloba <klobag@google.com>
Thu, 17 Sep 2009 21:20:28 +0000 (14:20 -0700)
committerGrace Kloba <klobag@google.com>
Thu, 17 Sep 2009 21:20:28 +0000 (14:20 -0700)
not in the loading state.

core/java/android/webkit/CallbackProxy.java

index e504591..b051675 100644 (file)
@@ -65,7 +65,8 @@ class CallbackProxy extends Handler {
     // Keep track of multiple progress updates.
     private boolean mProgressUpdatePending;
     // Keep track of the last progress amount.
-    private volatile int mLatestProgress;
+    // Start with 100 to indicate it is not in load for the empty page.
+    private volatile int mLatestProgress = 100;
     // Back/Forward list
     private final WebBackForwardList mBackForwardList;
     // Used to call startActivity during url override.