diff options
author | Allan Wang <allanwang@google.com> | 2019-08-15 16:04:14 -0700 |
---|---|---|
committer | Allan Wang <allanwang@google.com> | 2019-08-15 16:04:14 -0700 |
commit | 5aefeee08f68777dd07a16bd42a7d2392db6bbc9 (patch) | |
tree | a357e6cd419123d69ca5d2977c8ce839c56f3d87 /core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt | |
parent | 85e9e1f253bb14512ae404989c45cbc199eb1eba (diff) | |
download | kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.gz kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.bz2 kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.zip |
Apply spotless
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt index aaef160..fac9421 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/Kotterknife.kt @@ -246,7 +246,7 @@ private fun <T, V : View> requiredResettable(ids: IntArray, finder: T.(Int) -> V private fun <T, V : View> optionalResettable(ids: IntArray, finder: T.(Int) -> View?) = LazyResettable { t: T, _ -> ids.map { t.finder(it) as V? }.filterNotNull() } -//Like Kotterknife's lazy delegate but is resettable +// Like Kotterknife's lazy delegate but is resettable private class LazyResettable<in T, out V>(initializer: (T, KProperty<*>) -> V) : Lazy<T, V>(initializer) { override fun getValue(thisRef: T, property: KProperty<*>): V { KotterknifeRegistry.register(thisRef!!, this) |