Skip to content

Commit

Permalink
use overload constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
saschoar committed Oct 24, 2023
1 parent cffa592 commit 2382af0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ import androidx.core.view.ViewCompat
*
* @see com.transferwise.sequencelayout.SequenceStep
*/
public class SequenceLayout(context: Context, attrs: AttributeSet?, defStyleAttr: Int) :
FrameLayout(context, attrs, defStyleAttr), SequenceStep.OnStepChangedListener {

public constructor(context: Context) : this(context, null)
public constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)
public class SequenceLayout @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : FrameLayout(context, attrs, defStyleAttr), SequenceStep.OnStepChangedListener {

init {
LayoutInflater.from(getContext()).inflate(R.layout.sequence_layout, this, true)
Expand Down
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 2382af0

Please sign in to comment.