diff options
author | John Reck <jreck@google.com> | 2010-10-25 16:20:40 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-10-26 10:00:38 -0700 |
commit | d8657622ef6474677d8c1294627d5423723cc867 (patch) | |
tree | 903de831fd49442e02caab7edb18b1252f81cbfc | |
parent | aff60fb04857e9f9883d357939074b2eafc111e7 (diff) | |
download | packages_apps_Browser-d8657622ef6474677d8c1294627d5423723cc867.zip packages_apps_Browser-d8657622ef6474677d8c1294627d5423723cc867.tar.gz packages_apps_Browser-d8657622ef6474677d8c1294627d5423723cc867.tar.bz2 |
Fix missing incognito tab title
Bug: 2988970
Fixed a bug where new icognito tabs often have a missing
title in the tab.
Change-Id: I1b1bff829e0c11be150678ea1aeea0bdfaa5d15a
-rw-r--r-- | src/com/android/browser/TabBar.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java index 9d58675..26b72f7 100644 --- a/src/com/android/browser/TabBar.java +++ b/src/com/android/browser/TabBar.java @@ -342,6 +342,10 @@ public class TabBar extends LinearLayout TabViewData(Tab tab) { mTab = tab; + WebView web = tab.getWebView(); + if (web != null) { + setUrlAndTitle(web.getUrl(), web.getTitle()); + } } void setUrlAndTitle(String url, String title) { |