Greatly improved suggestion result speed
Bug: 3201805
This change does 2 key things. The first is it supports recycling
views. The second is local suggestions (bookmarks and history) no
longer wait for remote suggestions (search suggestions)
Change-Id: Ic659ce486a5b674490248b8c1ffb9a8c24afe609
diff --git a/res/layout/suggestion_two_column.xml b/res/layout/suggestion_two_column.xml
index fc74140..cc4f2e2 100644
--- a/res/layout/suggestion_two_column.xml
+++ b/res/layout/suggestion_two_column.xml
@@ -27,18 +27,21 @@
android:baselineAligned="false">
<include
android:id="@+id/suggest1"
- layout="@layout/suggestion_item"
+ android:layout_height="56dip"
android:layout_width="0dip"
android:layout_weight="1"
+ layout="@layout/suggestion_item"
/>
<ImageView
+ android:id="@+id/suggestion_divider"
android:layout_width="wrap_content"
android:layout_height="56dip"
android:background="@drawable/list_divider_vert" />
<include
android:id="@+id/suggest2"
- layout="@layout/suggestion_item"
+ android:layout_height="56dip"
android:layout_width="0dip"
android:layout_weight="1"
+ layout="@layout/suggestion_item"
/>
</LinearLayout>