diff options
author | Michael Kolb <kolby@google.com> | 2011-09-02 16:19:53 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-09-02 16:40:35 -0700 |
commit | 03b6bc6dc3644e9843f2ff05bca543e546fe3a61 (patch) | |
tree | a86e46c2226a9a528fdfe453026873a2275c2c80 /src/com/android/browser/BaseUi.java | |
parent | 4f79a14a8aa067463dad15a018370012ed593608 (diff) | |
download | packages_apps_Browser-03b6bc6dc3644e9843f2ff05bca543e546fe3a61.zip packages_apps_Browser-03b6bc6dc3644e9843f2ff05bca543e546fe3a61.tar.gz packages_apps_Browser-03b6bc6dc3644e9843f2ff05bca543e546fe3a61.tar.bz2 |
Fix NPE in setActiveTab
Bug: 5248939 5214748
The second bug is actually different, and was not repeatable
but the first case is now protected
Change-Id: I26f16ee3a828f6e9208c02cde89faa43a0423428
Diffstat (limited to 'src/com/android/browser/BaseUi.java')
-rw-r--r-- | src/com/android/browser/BaseUi.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 17ba4d7..bce3257 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java @@ -247,8 +247,7 @@ public abstract class BaseUi implements UI { setShouldShowErrorConsole(tab, mUiController.shouldShowErrorConsole()); onTabDataChanged(tab); onProgressChanged(tab); - boolean incognito = mActiveTab.getWebView().isPrivateBrowsingEnabled(); - mNavigationBar.setIncognitoMode(incognito); + mNavigationBar.setIncognitoMode(tab.isPrivateBrowsingEnabled()); updateAutoLogin(tab, false); if (web != null && web.getVisibleTitleHeight() != mTitleBar.getEmbeddedHeight() |