OSDN Git Service

Reset the progress when beginning to load a new page.
authorLeon Scroggins <scroggo@google.com>
Wed, 4 Nov 2009 19:13:50 +0000 (11:13 -0800)
committerLeon Scroggins <scroggo@google.com>
Fri, 6 Nov 2009 15:33:54 +0000 (07:33 -0800)
Fixes http://b/issue?id=2233145

src/com/android/browser/BrowserActivity.java

index 7076b22..c9d5393 100644 (file)
@@ -2345,10 +2345,12 @@ public class BrowserActivity extends Activity
         resetLockIcon(url);
         setUrlTitle(url, null);
         setFavicon(favicon);
-        mInLoad = true;
+        // Keep this initial progress in sync with initialProgressValue (* 100)
+        // in ProgressTracker.cpp
+        // Show some progress so that the user knows the page is beginning to
+        // load
+        onProgressChanged(view, 10);
         mDidStopLoad = false;
-        showFakeTitleBar();
-        updateInLoadMenuItems();
         if (!mIsNetworkUp) createAndShowNetworkDialog();
 
         if (mSettings.isTracing()) {