aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-24 12:26:39 -0700
committerAllan Wang <me@allanwang.ca>2017-06-24 12:26:39 -0700
commite38252e1576c7259626222067f872ffbe2b25ccb (patch)
tree26aa561691fb185e69cdd12fa8565743a4ae2989 /library
parentbe1dc924a7b7cce61fabe0b03ff26c780920db95 (diff)
downloadkau-e38252e1576c7259626222067f872ffbe2b25ccb.tar.gz
kau-e38252e1576c7259626222067f872ffbe2b25ccb.tar.bz2
kau-e38252e1576c7259626222067f872ffbe2b25ccb.zip
Fix travis
Diffstat (limited to 'library')
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt b/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt
index 45274b8..4f2bf50 100644
--- a/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt
+++ b/library/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt
@@ -16,6 +16,7 @@ import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.ProgressBar
import ca.allanwang.kau.R
+import ca.allanwang.kau.logging.KL
import ca.allanwang.kau.utils.*
import com.mikepenz.fastadapter.commons.adapters.FastItemAdapter
import com.mikepenz.google_material_typeface_library.GoogleMaterial
@@ -116,8 +117,8 @@ class SearchView @JvmOverloads constructor(
this.parent = parent
val item = menu.findItem(id)
if (item.icon == null) item.icon = GoogleMaterial.Icon.gmd_search.toDrawable(context, 20)
- gone()
- item.setOnMenuItemClickListener { getMenuItemCoords(it); revealOpen(); true }
+ card.gone()
+ item.setOnMenuItemClickListener { KL.e("Click"); getMenuItemCoords(it); revealOpen(); true }
shadow.setOnClickListener { revealClose() }
}