diff options
author | Allan Wang <me@allanwang.ca> | 2021-01-11 00:49:07 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-01-11 00:49:07 -0800 |
commit | 451e9869bca0ea16eb24eaa8fe9e866ce36a9a7a (patch) | |
tree | 9f6eefc3a3eefb965841ebc4338b5f21aa0959d1 /searchview/src/main/kotlin/ca | |
parent | 89d4a2e596d07585c4a3ed91e6e091111da0c2ad (diff) | |
download | kau-451e9869bca0ea16eb24eaa8fe9e866ce36a9a7a.tar.gz kau-451e9869bca0ea16eb24eaa8fe9e866ce36a9a7a.tar.bz2 kau-451e9869bca0ea16eb24eaa8fe9e866ce36a9a7a.zip |
Apply spotless and allow wildcard imports
Diffstat (limited to 'searchview/src/main/kotlin/ca')
-rw-r--r-- | searchview/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/searchview/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt b/searchview/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt index edf7408..12f835b 100644 --- a/searchview/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt +++ b/searchview/src/main/kotlin/ca/allanwang/kau/searchview/SearchView.kt @@ -55,9 +55,9 @@ import com.mikepenz.iconics.typeface.library.googlematerial.GoogleMaterial * https://github.com/lapism/SearchView */ class SearchView @JvmOverloads constructor( - context: Context, - attrs: AttributeSet? = null, - defStyleAttr: Int = 0 + context: Context, + attrs: AttributeSet? = null, + defStyleAttr: Int = 0 ) : FrameLayout(context, attrs, defStyleAttr) { /** @@ -388,10 +388,10 @@ class SearchView @JvmOverloads constructor( * If not, see the extension function [bindSearchView] */ fun bind( - menu: Menu, - @IdRes id: Int, - @ColorInt menuIconColor: Int = Color.WHITE, - config: Configs.() -> Unit = {} + menu: Menu, + @IdRes id: Int, + @ColorInt menuIconColor: Int = Color.WHITE, + config: Configs.() -> Unit = {} ): SearchView { config(config) val menuItem = menu.findItem(id) @@ -537,10 +537,10 @@ annotation class KauSearch */ @KauSearch fun Activity.bindSearchView( - menu: Menu, - @IdRes id: Int, - @ColorInt menuIconColor: Int = Color.WHITE, - config: Configs.() -> Unit = {} + menu: Menu, + @IdRes id: Int, + @ColorInt menuIconColor: Int = Color.WHITE, + config: Configs.() -> Unit = {} ): SearchView = findViewById<ViewGroup>(android.R.id.content).bindSearchView(menu, id, menuIconColor, config) @@ -551,10 +551,10 @@ fun Activity.bindSearchView( */ @KauSearch fun ViewGroup.bindSearchView( - menu: Menu, - @IdRes id: Int, - @ColorInt menuIconColor: Int = Color.WHITE, - config: Configs.() -> Unit = {} + menu: Menu, + @IdRes id: Int, + @ColorInt menuIconColor: Int = Color.WHITE, + config: Configs.() -> Unit = {} ): SearchView { val searchView = SearchView(context) searchView.layoutParams = |