Skip to content

Commit

Permalink
refactor: use overload constructors (#75)
Browse files Browse the repository at this point in the history
* use overload constructors

* undo SequenceLayout change to avoid api change
  • Loading branch information
saschoar authored Oct 25, 2023
1 parent 123212e commit a5bf6f8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a5bf6f8

Please sign in to comment.