diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/search/SearchFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/search/SearchFragment.kt index 5ba23e11..e8351b34 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/search/SearchFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/search/SearchFragment.kt @@ -353,8 +353,10 @@ class SearchFragment : Fragment() { override fun onQueryTextChange(newText: String): Boolean { //searchViewModel.quickSearch(newText) val showHistory = newText.isBlank() - searchViewModel.clearSearch() - searchViewModel.updateHistory() + if (showHistory) { + searchViewModel.clearSearch() + searchViewModel.updateHistory() + } search_history_recycler?.isVisible = showHistory diff --git a/app/src/main/res/layout/search_history_item.xml b/app/src/main/res/layout/search_history_item.xml index 4daf4c8c..34cd59bc 100644 --- a/app/src/main/res/layout/search_history_item.xml +++ b/app/src/main/res/layout/search_history_item.xml @@ -6,6 +6,7 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:id="@+id/home_history_tab" + android:foreground="?android:attr/selectableItemBackgroundBorderless" android:nextFocusRight="@id/home_history_remove">