diff options
author | Michael Kolb <kolby@google.com> | 2010-10-14 15:03:28 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2010-10-14 15:11:15 -0700 |
commit | 7b20ddd4f03d59cca8fdd4aee790784421570aab (patch) | |
tree | 0d3e3220eda33b25f3cdd7e9db7e47a4412e4591 /src/com/android/browser/SuggestionsAdapter.java | |
parent | b3a00ab2336bdb2871924232b744160f47116a78 (diff) | |
download | packages_apps_Browser-7b20ddd4f03d59cca8fdd4aee790784421570aab.zip packages_apps_Browser-7b20ddd4f03d59cca8fdd4aee790784421570aab.tar.gz packages_apps_Browser-7b20ddd4f03d59cca8fdd4aee790784421570aab.tar.bz2 |
Fix suggestion edit button
Bug 3052626
Bug 3052664
added vertical divider
refresh dropdown when sugegstion is selected
Change-Id: I3f2e72bbd9a93ccc3a7968e646493945c0052d2b
Diffstat (limited to 'src/com/android/browser/SuggestionsAdapter.java')
-rw-r--r-- | src/com/android/browser/SuggestionsAdapter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java index 7cfd78e..30e46fe 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -209,6 +209,7 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, OnCli ImageView ic1 = (ImageView) view.findViewById(R.id.icon1); View spacer = view.findViewById(R.id.spacer); View ic2 = view.findViewById(R.id.icon2); + View div = view.findViewById(R.id.divider); tv1.setText(item.title); tv2.setText(item.url); int id = -1; @@ -234,6 +235,7 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, OnCli } ic2.setVisibility(((TYPE_SUGGEST == item.type) || (TYPE_SEARCH == item.type)) ? View.VISIBLE : View.GONE); + div.setVisibility(ic2.getVisibility()); spacer.setVisibility(((TYPE_SUGGEST == item.type) || (TYPE_SEARCH == item.type)) ? View.GONE : View.INVISIBLE); view.setOnClickListener(this); |