[Android] Fix search empty state and search item focus state

Nicolas Pomepuy git at videolan.org
Fri May 3 12:33:31 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu May  2 15:01:40 2019 +0200| [af4e9f9584997fbc568057a735660f891fdcf75d] | committer: Geoffrey Métais

Fix search empty state and search item focus state

> https://code.videolan.org/videolan/vlc-android/commit/af4e9f9584997fbc568057a735660f891fdcf75d
---

 vlc-android/res/layout/search_item.xml                 | 2 +-
 vlc-android/src/org/videolan/vlc/gui/SearchActivity.kt | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/search_item.xml b/vlc-android/res/layout/search_item.xml
index dd10dcebc..d560baef1 100644
--- a/vlc-android/res/layout/search_item.xml
+++ b/vlc-android/res/layout/search_item.xml
@@ -23,7 +23,7 @@
     <RelativeLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_margin="10dp"
+        android:padding="10dp"
         android:clickable="true"
         android:focusable="true"
         android:background="@{bgColor}"
diff --git a/vlc-android/src/org/videolan/vlc/gui/SearchActivity.kt b/vlc-android/src/org/videolan/vlc/gui/SearchActivity.kt
index c485d78e5..463f13c6e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SearchActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/SearchActivity.kt
@@ -45,6 +45,7 @@ open class SearchActivity : AppCompatActivity(), TextWatcher, TextView.OnEditorA
         val intent = intent
         binding = DataBindingUtil.setContentView(this, R.layout.search_activity)
         binding.handler = clickHandler
+        binding.searchAggregate = SearchAggregate()
         medialibrary = VLCApplication.mlInstance
         if (Intent.ACTION_SEARCH == intent.action || "com.google.android.gms.actions.SEARCH_ACTION" == intent.action) {
             val query = intent.getStringExtra(SearchManager.QUERY)



More information about the Android mailing list