diff options
author | Allan Wang <me@allanwang.ca> | 2018-02-13 16:53:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 16:53:41 -0500 |
commit | e9111feb62bf245309d1ffde9f8579195d8f6449 (patch) | |
tree | d99509f5759b542484e4663e8a6d33b92a74057f /core | |
parent | cdb1bd6eec2c90abc9d3d982814552443c7fc3b2 (diff) | |
download | kau-e9111feb62bf245309d1ffde9f8579195d8f6449.tar.gz kau-e9111feb62bf245309d1ffde9f8579195d8f6449.tar.bz2 kau-e9111feb62bf245309d1ffde9f8579195d8f6449.zip |
Reorder final override (#136)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt | 2 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt index 514b483..8923775 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt @@ -37,7 +37,7 @@ interface CollapsibleView { class CollapsibleViewDelegate : CollapsibleView { private lateinit var viewRef: WeakReference<View> - private inline val view + private inline val view: View? get() = viewRef.get() private var animator: ValueAnimator? = null diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt index 1946dbc..484e5bd 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt @@ -248,7 +248,7 @@ fun RecyclerView.withLinearAdapter(rvAdapter: RecyclerView.Adapter<*>) = apply { /** * Animate a transition a given imageview - * If it is not shown, the action will be invoked directly and the fab will be shown + * If it is not shown, the action will be invoked directly and no further actions will be made * If it is already shown, scaling and alpha animations will be added to the action */ inline fun <T : ImageView> T.fadeScaleTransition(duration: Long = 500L, minScale: Float = 0.7f, crossinline action: T.() -> Unit) { |