summaryrefslogtreecommitdiff
path: root/src/com/android/browser/Controller.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/Controller.java')
-rw-r--r--src/com/android/browser/Controller.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 78d00770..282d4f2e 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -336,8 +336,11 @@ public class Controller
// TabControl.restoreState() will create a new tab even if
// restoring the state fails.
setActiveTab(mTabControl.getCurrentTab());
- // Handle the intent
- mIntentHandler.onNewIntent(intent);
+ // Handle the intent if needed. If icicle != null, we are restoring
+ // and the intent will be stale - ignore it.
+ if (icicle == null) {
+ mIntentHandler.onNewIntent(intent);
+ }
}
// Read JavaScript flags if it exists.
String jsFlags = getSettings().getJsEngineFlags();
@@ -880,7 +883,7 @@ public class Controller
}
@Override
- public void onUpdatedLockIcon(Tab tab) {
+ public void onUpdatedSecurityState(Tab tab) {
mUi.onTabDataChanged(tab);
}
@@ -2358,6 +2361,7 @@ public class Controller
if (tab != null) {
dismissSubWindow(tab);
tab.loadUrl(url, headers);
+ mUi.onProgressChanged(tab);
}
}