[Android] Hint for search field

Geoffrey Métais git at videolan.org
Thu Mar 12 11:55:05 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 12 11:54:22 2015 +0100| [0808e0ce4ccdb2cf5e5fbd35e4cf8e19447552de] | committer: Geoffrey Métais

Hint for search field

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0808e0ce4ccdb2cf5e5fbd35e4cf8e19447552de
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 7ccf33a..3035358 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -547,6 +547,7 @@ public class MainActivity extends ActionBarActivity implements OnItemClickListen
             mSearchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.ml_menu_search));
             mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
             mSearchView.setOnQueryTextListener(this);
+            mSearchView.setQueryHint(getString(R.string.search_hint));
             mSearchView.setSuggestionsAdapter(new SearchSuggestionsAdapter(this, null));
         } else
             menu.findItem(R.id.ml_menu_search).setVisible(false);



More information about the Android mailing list