From a5bf6f829f53b787f6d657ab758165a4d8f02e83 Mon Sep 17 00:00:00 2001 From: Sascha Huth Date: Wed, 25 Oct 2023 10:24:42 +0100 Subject: [PATCH] refactor: use overload constructors (#75) * use overload constructors * undo SequenceLayout change to avoid api change --- .../com/transferwise/sequencelayout/SequenceStepDot.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/src/main/java/com/transferwise/sequencelayout/SequenceStepDot.kt b/library/src/main/java/com/transferwise/sequencelayout/SequenceStepDot.kt index 1a74eab..26756fb 100644 --- a/library/src/main/java/com/transferwise/sequencelayout/SequenceStepDot.kt +++ b/library/src/main/java/com/transferwise/sequencelayout/SequenceStepDot.kt @@ -15,11 +15,11 @@ import android.view.LayoutInflater import android.view.View import android.widget.FrameLayout -internal class SequenceStepDot(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : - FrameLayout(context, attrs, defStyleAttr) { - - constructor(context: Context) : this(context, null) - constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0) +internal class SequenceStepDot @JvmOverloads constructor( + context: Context, + attrs: AttributeSet? = null, + defStyleAttr: Int = 0 +) : FrameLayout(context, attrs, defStyleAttr) { private var pulseAnimator: AnimatorSet? = null