Fixes tab title not updating correctly
Bug: 3130982
Fixes the bug where the tab title would stay the same until a new
title was received. Now the title changes to "Loading..." until a
new title is received, or changes to the URL if the page finishes
or is canceled without receiving a title.
Change-Id: I667acbaeea5383b6a434c20337d404f49b947b0d
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 910f753..2436e84 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -510,7 +510,7 @@
mActivity.onPageStarted(view, url, favicon);
}
if (getTabChangeListener() != null) {
- getTabChangeListener().onPageStarted(Tab.this, favicon);
+ getTabChangeListener().onPageStarted(Tab.this, url, favicon);
}
}