diff options
Diffstat (limited to 'src/com/android/browser/Controller.java')
| -rw-r--r-- | src/com/android/browser/Controller.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 79fff3dc..aabdb266 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1903,10 +1903,9 @@ public class Controller } protected void setActiveTab(Tab tab) { - // Update the UI before setting the current tab in TabControl - // so the UI can access the old tab to switch over from - mUi.setActiveTab(tab); mTabControl.setCurrentTab(tab); + // the tab is guaranteed to have a webview after setCurrentTab + mUi.setActiveTab(tab); } protected void closeEmptyChildTab() { |
