diff options
author | John Reck <jreck@google.com> | 2011-10-05 15:18:11 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-10-05 15:18:11 -0700 |
commit | f1e991b8a7881980df0bbc31c0f5b893039c59b8 (patch) | |
tree | 3939133654a629c2feef1420699ae8831d6521ed /src/com | |
parent | 1c7df5bf38e258c0c29a64c2283726812d2ba11d (diff) | |
parent | 9dd4a4129b91343b7b21e2389519ff1a795a447d (diff) | |
download | packages_apps_browser-f1e991b8a7881980df0bbc31c0f5b893039c59b8.zip packages_apps_browser-f1e991b8a7881980df0bbc31c0f5b893039c59b8.tar.gz packages_apps_browser-f1e991b8a7881980df0bbc31c0f5b893039c59b8.tar.bz2 |
Merge "Fix intent handling"
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/Controller.java | 7 | ||||
-rw-r--r-- | src/com/android/browser/IntentHandler.java | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 602df06..edec96f 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(); diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index cc6b57c..c76197d 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -65,7 +65,6 @@ public class IntentHandler { } void onNewIntent(Intent intent) { - mActivity.setIntent(null); Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. |