aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin/ca
diff options
context:
space:
mode:
Diffstat (limited to 'sample/src/main/kotlin/ca')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt6
1 files changed, 6 insertions, 0 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 7680588..c836227 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -1,5 +1,6 @@
package ca.allanwang.kau.sample
+import android.graphics.Color
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
@@ -136,6 +137,11 @@ class MainActivity : KPrefActivity() {
}
noResultsFound = R.string.kau_no_results_found
shouldClearOnClose = false
+ onItemClick = {
+ position, key, content, searchView ->
+ toast(content)
+ searchView.revealClose()
+ }
}
return true
}