summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NavigationBarBase.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-05-29 17:22:35 -0700
committerMichael Kolb <kolby@google.com>2012-05-29 17:22:35 -0700
commit29aab40c6af8cf34e7c5040725600fd1ee52a35b (patch)
tree7a21c601397536caf4bdcb64b81fad1e05d4371c /src/com/android/browser/NavigationBarBase.java
parent070a0c79c3c6498c2b05c9ad1f4c93b13c46382c (diff)
downloadpackages_apps_Browser-29aab40c6af8cf34e7c5040725600fd1ee52a35b.zip
packages_apps_Browser-29aab40c6af8cf34e7c5040725600fd1ee52a35b.tar.gz
packages_apps_Browser-29aab40c6af8cf34e7c5040725600fd1ee52a35b.tar.bz2
Only change text in url input when it changed
Bug: 6556693 Change-Id: Iad0f285f89710de1bbdf7ab5f727bdc81d4ef387
Diffstat (limited to 'src/com/android/browser/NavigationBarBase.java')
-rw-r--r--src/com/android/browser/NavigationBarBase.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/NavigationBarBase.java b/src/com/android/browser/NavigationBarBase.java
index cf61c45..37b11c8 100644
--- a/src/com/android/browser/NavigationBarBase.java
+++ b/src/com/android/browser/NavigationBarBase.java
@@ -134,7 +134,9 @@ public class NavigationBarBase extends LinearLayout implements
void setDisplayTitle(String title) {
if (!isEditingUrl()) {
- mUrlInput.setText(title, false);
+ if (!title.equals(mUrlInput.getText().toString())) {
+ mUrlInput.setText(title, false);
+ }
}
}