summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-08-31 14:07:32 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-31 14:07:32 -0700
commite7554618a918b86fa1b72527f88157b0e9e8fa0e (patch)
tree622b295006d0c7df08205b68b479562cdcec6662
parentc3e36bdbf35bc80eb848c89cec14c20b8888073f (diff)
parent2fc7c16e96af8570105af6f6b3c5e1fdefe397f1 (diff)
downloadpackages_apps_Browser-e7554618a918b86fa1b72527f88157b0e9e8fa0e.zip
packages_apps_Browser-e7554618a918b86fa1b72527f88157b0e9e8fa0e.tar.gz
packages_apps_Browser-e7554618a918b86fa1b72527f88157b0e9e8fa0e.tar.bz2
Merge "Show n-best results"
-rw-r--r--src/com/android/browser/NavigationBarPhone.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/NavigationBarPhone.java b/src/com/android/browser/NavigationBarPhone.java
index 5cabe31..fee9604 100644
--- a/src/com/android/browser/NavigationBarPhone.java
+++ b/src/com/android/browser/NavigationBarPhone.java
@@ -193,7 +193,8 @@ public class NavigationBarPhone extends NavigationBarBase implements
@Override
public void onFocusChange(View view, boolean hasFocus) {
if (view == mUrlInput) {
- if (hasFocus) {
+ if (hasFocus && !mUrlInput.getText().toString().equals(mUrlInput.getTag())) {
+ // only change text if different
mUrlInput.setText((String) mUrlInput.getTag(), false);
} else {
setDisplayTitle(mUrlInput.getText().toString());