diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-26 15:57:30 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-26 15:57:30 -0700 |
commit | f1ad240716d9cb99dd3077a4dc189d67e7803f9f (patch) | |
tree | a542cba268e19a3ff23cbddde9267a83d8fbd97a /sample/src/main/kotlin/ca | |
parent | 600524d548105aa026c0d1900d503bab34c38ce4 (diff) | |
download | kau-f1ad240716d9cb99dd3077a4dc189d67e7803f9f.tar.gz kau-f1ad240716d9cb99dd3077a4dc189d67e7803f9f.tar.bz2 kau-f1ad240716d9cb99dd3077a4dc189d67e7803f9f.zip |
Bind search to root view
Diffstat (limited to 'sample/src/main/kotlin/ca')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index 83523fa..46f4cd2 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -131,7 +131,7 @@ class MainActivity : KPrefActivity() { override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.menu_main, menu) - searchView = container.bindSearchView(menu, R.id.action_search) { + searchView = bindSearchView(menu, R.id.action_search) { textObserver = { observable, searchView -> observable.subscribe { |