Improve Search fragment

* Keep search query when fragment is restored
 * Simplify SuggestionListAdapter
   * Use ResourceCursorAdapter for view creation
 * Fix deprecation warning
 * Some clean code
This commit is contained in:
Coffeemakr 2017-01-11 11:06:24 +01:00
parent b3225bebe6
commit 7efd111d9c
11 changed files with 116 additions and 89 deletions

View file

@ -6,8 +6,6 @@
tools:context="org.schabi.newpipe.MainActivity"
android:orientation="vertical">
<include layout="@layout/main_bg" />
<fragment
android:id="@+id/search_fragment"
android:name="org.schabi.newpipe.search_fragment.SearchInfoItemFragment"

View file

@ -7,6 +7,8 @@
android:name="org.schabi.newpipe.SearchInfoItemFragment"
tools:context=".search_fragment.SearchInfoItemFragment">
<include layout="@layout/main_bg" />
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"