URL autocomplete shows URL twices

  Bug: 1377072
  For pages that do not have a title, the url autocomplete would show
  the url twice, once as the title in large font and once as the url
  below it in a smaller font. This has been fixed to only show the url
  once as the title, eliminating the url line.

Change-Id: I873314fcb8f06322cecf869c79ffece6d4404a03
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java
index 903768c..7cfcc6b 100644
--- a/src/com/android/browser/SuggestionsAdapter.java
+++ b/src/com/android/browser/SuggestionsAdapter.java
@@ -488,7 +488,9 @@
          * @return the subtitle string to use, or null if none
          */
         private String getUrl(String title, String url) {
-            if (TextUtils.isEmpty(title) || TextUtils.getTrimmedLength(title) == 0) {
+            if (TextUtils.isEmpty(title)
+                    || TextUtils.getTrimmedLength(title) == 0
+                    || title.equals(url)) {
                 return null;
             } else {
                 return stripUrl(url);